Obviouly is not the way because it does'nt work. I get an Exception

org.hibernate.LazyInitializationException: failed to lazily initialize a 
collection of role: entities.Country.organizations, no session or session was 
closed
        at 
org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:358)
        at 
org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:350)
        at 
org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:97)
        at org.hibernate.collection.PersistentBag.size(PersistentBag.java:222)
        at beans.CountryBean.doRefreshWithOrganizations(CountryBean.java:142)
....


Any idea of what to do?

Thanks.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3950283#3950283

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3950283


_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to