Hibernate Many to Many Mapping Example with Spring Boot and JPA
Read the Tutorial - https://www.callicoder.com/hibernate-spring-boot-jpa-many-to-many-mapping-example/
Setup the Application
-
Create a database named
hibernate_many_to_many_demo
. -
Open
src/main/resources/application.properties
and changespring.datasource.username
andspring.datasource.password
properties as per your MySQL installation. -
Type
mvn spring-boot:run
from the root directory of the project to run the application.