JPA One-To-One Foreign Key Relationship Mapping Example with Spring Data JPA, Spring Boot Guide https://hellokoding.com/jpa-one-to-one-foreignkey-relationship-example-with-spring-boot-hsql/ What you'll need JDK 1.7 or later Maven 3 or later Stack Spring Data JPA Spring Boot Run mvn spring-boot:run