Our product is using Hibernate 3.6.10 at the moment. Our clients are Java webstart/Swing clients and run in a separate JVM, using EJBs and RMI to pass the data between server and clients, so by default, all of our beans are defined at lazy=false in our mapping files. Annotations not currently used.
We have a case now of a bean that has a one-to-many collection/association but when we want to provide an api to get a list of the parent objects without populating all the child objects in each parent. I found the following posting on StackOverflow but was not able to make their solution (the second one in the posting - not the first!). http://stackoverflow.com/questions/2222840/hibernate-enabling-lazy-fetching-in-criteria-api
Lazy loading if truly the exception rather than the rule for us, but is there a way for us to get a list of the parent objects where the child objects are not loaded (like with Lazy loading)?
|