Hi all,
I would like to model a LIST-ITEMS mapping (one-to-many), but I don't want to use a 'set' because I cannot reference the items by their ID (I can only enumerate the set...). However, I cannot use the 'map' property either because it does not have a one-to-many feature.
What is the solution to this problem?
To clarify, I have List and Item classes, LIST and ITEM tables, and I would simply like to do sth like:
Code:
myitem = mylist.getItems().get("itemA")
Thanks...
Hibernate version:
3.1
Name and version of the database you are using:
sql server 2000 sp3