users@glassfish.java.net

Re: JPA and Joins Returning too much information

From: <glassfish_at_javadesktop.org>
Date: Wed, 09 Jan 2008 10:56:09 PST

JPA doesn't provide a way to filter out part of the relationships. If you load them, you load all the related items.

You might want to mark the collection fetch type as LAZY, then select claimLines and members or even run 2 queries. 2 simple queries might even run faster.

Regards,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]

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