The common practice when coding for JSF is to implement collections using List implementations, to easily integrate with DataTables, even when you don't really need List semantics.
"Hibernate in Action" suggests the use of Set whenever you don't need List semantics.
So how do we make Hibernate and JSF work together nicely?
- Is it better to have a Set in Hibernate and convert it to List in the presentation
- Would it be better to have List everywhere?
- Should we use a custom hibernate type as suggested in another thread?
("Using a bag with set semantics"
http://forum.hibernate.org/viewtopic.php?t=960001&postdays=0&postorder=asc&start=0)
- Other options?
Thank you
Xtian