This project can be used as a reference for JPA relations mapping and best practices. The project contains detailed example for following scenarios
- OneToOne
a.UniDirectional OneToOne
b.BiDirectional OneToOne - OneToMany
a. UniDirectional OneToMany
b. UniDirectional ManytoOne
c. BiDirectional OneToMany - ManyToMany
a. BiDirectional OneToMAny alternative for ManyToMany relation with EmbeddedId and MapsId