In order to load a lazy collection of a detached entity I've a method in a
session bean that does the work and returns the same instance of the object but
with the collection loaded....
public Country RefreshCountryCollection(Country country)
{
em.merge(country);
country.getChildrenOrganizations();
return country;
}
Is this the rigth way of doing so??? Or there is a better way of doing so?
Thanks in advance!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3950255#3950255
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3950255
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user