users@glassfish.java.net

Re: Glassfish + TopLink Lazy Loading

From: <glassfish_at_javadesktop.org>
Date: Tue, 04 Aug 2009 06:44:41 PDT

Hello,

In the bean code, you are triggering the loading of the getUsuarios() on a single Grupo, but in the client code shown, it is a list grupos. How is the list obtained and what is the exception you are getting? If you are reading a collection of Grupo entities, the only way to ensure that each of them has the getUsuarios loaded is to use a fetch join in the query.

Best Regards,
Chris
[Message sent by forum member 'chris_delahunt' (chris_delahunt)]

http://forums.java.net/jive/thread.jspa?messageID=358778