This is an implentation template for working with spring boot jpa and relational databases. It includes mapping classes database tables, working with transactions, JPQL queries, Native queries, 1 to 1 relationships, 1 to many relationships, and many to many relationships.
In this example am using PostgreSQL as database. And the layout is as follows:
- Student (OneToMany) -> Book
- Student (OneToOne) -> StudentIdCard
- Student (ManyToMany) -> Enrolment <- (ManyToMany) Course