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
Regsrds
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
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to