I'm not sure its a "terrible" design flaw. I think your wording might be overstating the issue. Is it unintuitive? Probably.
A previous post said it right - just getting the reference does not imply you are reading/accessing the data. It's conceivable you are just going to pass that refererence around and not yet access any of the data in the collection. If you want to force the collection to be loaded, use EAGER fetching or don't use the find method; instead, perform a query that loads the collection with an inner join. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931641#3931641 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931641 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
