Regarding the new jboss-serialization.jar, that seems to also fix my ClassClassException reported earlier in the forum thread.
To Martin: My EagerOnDemand class does multi-level relationship loading. So you can load User.Organization and also Organization.Address. The article suggested by Phon is good. Originally I tried using the Fetch Join queries and encountered the problem described in the article where you can't create a distinct query. The problem occurs when you have 1-to-N relationships with many rows and you may load a number of relationships at once. So if I had 10 users each in 10 groups containing 10 permissions, the query would return 1000 rows each repeating the data from every object. The amount of data was huge and took too long to retrieve and process. In those cases I found it faster to load the relationships independently. I actually got this idea by looking at the queries issued by the JBoss server when these relationships were defined as EAGER. There would be a separate query each for Users and Groups and Permissions. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927140#3927140 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927140 ------------------------------------------------------- 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
