wood burning stoves*
The moose likes Object Relational Mapping and the fly likes Mapping relationships in Hibernate? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Mapping relationships in Hibernate?" Watch "Mapping relationships in Hibernate?" New topic

Mapping relationships in Hibernate?

Volodymyr Levytskyi
Ranch Hand

Joined: Mar 29, 2012
Posts: 505


Can anybody explain me the following in hibernate:

1. For @OneToMany association when to use List, Set, Collection

2. For @ManyToMany association when to use List, Set, Collection.

Thank you for any tips!

True person is moral, false is right!
It is sorta covered in the JavaRanch Style Guide.
subject: Mapping relationships in Hibernate?
Similar Threads
Special Association Mapping in Hibernate
Cast Entity association collection to implementation type
Critial Problem with one-to-one association.
Hibernate POJOs -- association or no-association ?
Dislike by association.