Dear. When I need not get the children collection, there is occurred the LazyInitializationException.
Board has recursive relationship. I want to get the Board data only as one object and his children object, but there are many recursive relationship object. There has grandchildren object with recursive relationship, not I want to get the grandchildren object, but I want to get just the object and his children object. but when one child object to get his child object(grandson object of root object), there occurs the LazyInitializationException. So I did coded as below, but there still occurrs the LayInitializationException. | try { | | for(Board childBoard : childBoards) { | str.append(childBoard.toXML()); | } | | } catch (LazyInitializationException e) { | //do not want to stdout the error message | } | How do I code to not stdout the LazyInitializationException message. # Ritchie. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3950295#3950295 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3950295 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user