JPA Entity Relationships(Mappings), ex- @OneToOne, @ManyToOne etc.
This project demonstrates core JPA Entity Relationships such as:
No external relational database setup is required.
You can insert sample data into various JPA entity relationships using the following API endpoints. Sample JSON payloads are available here.
POST /api/emp/create
Inserts data into a @OneToOne
relationship.
POST /api/tchr/create
Insert data into @OneToMany
relationship.
👉 Data is automatically populated at startup using a CommandLineRunner
.
POST /api/movie/create
Inserts data into a @ManyToMany
relationship.
8082
by default.application.properties
.