1. How to eagerly fetch a single "default" entity from a collection in EJB3/JPA stackoverflow.comI have a Person entity with multiple phone numbers.
Now I would like to implement a "get default phone number" method ... |
2. Default eager fetching when using Annotations forum.hibernate.orgHello! I have a simple Domain model. "Dienst" has a property "Benutzer". When I map the entities with annotations, the "benutzer" property is always fetched eagerly. When I map the entities with the provided hbm.xml file I get my expected LazyLoadingException I think I miss something trivial, as I've not found anything in the forums, docus, or books. as it states ... |