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

wquraishi do-not-reply at jboss.com
Wed Aug 29 15:31:38 EDT 2007


One thing I discovered is if you override the toString() method and output the relationships, it'll force the container to load the relationship related fields.  I'm thinking it accomplishes the same thing as fetchtype.eager but i've had more luck with this.  Plus it works dual fold since I use the toString() method in conjunction with facesMessages to display what the object coming back is.

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

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



More information about the jboss-user mailing list