Ok, sorry, you're right. The name of the section is "Mapping collections of value types". I already understand that I should use id for entity types and not use for value types.
But, I don't understand the question about use of lists or sets yet. It's true that the association semantics of my collections is set, because the table structure doesn't support duplicates. But I want to use List object in my java code. In this case, what should I do? Use <set> in the mapping files and List in my java code? Can I do this? Or should I use <list> or <bag> in my mapping files?
|