Using hibernate we can put the following types of relationships:
We can distinguish two types of all above relations
You can easily count that all types of hibernate relationships is 7(one-to-many and many-to-one are the same). In next articles I will try to clearly explain all of this relations with easy examples.
If you don’t know how to create simple hibernate project, at the beginning you should read my previous article: Using Hibernate persistence with Maven.