Using hibernate we can put the following types of relationships:
* one-to-one
* one-to-many
* many-to-one
* many-to-many
We can distinguish two types of all above relations
* unidirectional
* bidirectional
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.
Brak komentarzy:
Prześlij komentarz