|
| 1 | +# Hibernate Composite Primary Key Example with Spring Boot and JPA |
| 2 | + |
| 3 | +Read the Tutorial - https://www.callicoder.com/hibernate-spring-boot-jpa-composite-primary-key-example/ |
| 4 | + |
| 5 | +## Setup the Application |
| 6 | + |
| 7 | +1. Create a database named `hibernate_composite_pk_demo`. |
| 8 | + |
| 9 | +2. Open `src/main/resources/application.properties` and change `spring.datasource.username` and `spring.datasource.password` properties as per your MySQL installation. |
| 10 | + |
| 11 | +3. Type `mvn spring-boot:run` from the root directory of the project to run the application. |
0 commit comments