[jboss-user] [JBoss jBPM] - Re: failed to lazily initialize a collection of role: ... .T

adochiny do-not-reply at jboss.com
Fri May 11 10:32:31 EDT 2007

You need to add parameter "fetch = FetchType.EAGER" to your one-to-many relationship which returns a collection, and write code similar to the following in your session bean.
Cruise cruise = manager.find(Cruise.class, cruiseID);
return cruise.getReservations();

Hope this will help
Adonis Mhlanga

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

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

More information about the jboss-user mailing list