[jboss-user] [EJB 3.0] - Re: failed to lazily initialize a collection of role

scraatz do-not-reply at jboss.com
Wed Jul 19 07:45:10 EDT 2006


It seems that your batches are lazyly loaded. Therefore you  can call getBatches() only within the same Transaction that loaded obj. 
You could mark the one-to-many relation as EAGER-loaded or use an extended Entitymanager.

Stefan

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

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



More information about the jboss-user mailing list