collection « JPA « JSF Q&A





1. Why does my "one-to-many" Hibernate attribute get method return an empty collection?    stackoverflow.com

I've setup a "one-to-many"/"many-to-one" bi-directional mapping relationship for a User class and a Pet class (for a pet store-themed academic web project). Each User owns collection of pets. It seems the ...

2. Recommended use of Hibernate collections with JSF?    forum.hibernate.org

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 ...