users@glassfish.java.net

Re: Force loading a lazy loaded field

From: <glassfish_at_javadesktop.org>
Date: Wed, 07 Mar 2007 07:36:25 PST

Executing a query with a FETCH JOIN for a related lazy relationship will cause that relationship to be loaded eagerly.

ie (select e from Employee e FETCH JOIN e.address) will cause all of the addresses to be eagerly loaded.
--Gordon
[Message sent by forum member 'gyorke' (gyorke)]

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