JPA One-To-One Foreign Key Relationship Mapping Example with Spring Boot, Maven and MySQL Guide https://hellokoding.com/jpa-one-to-one-foreignkey-relationship-example-with-spring-boot-maven-and-mysql/ Prerequisites JDK 1.8 or later Maven 3 or later MySQL 5.6 or later Stack Spring Data JPA Spring Boot MySQL Run mvn spring-boot:run