users@glassfish.java.net

Re: Fetch.Lazy and ManyToMany

From: <glassfish_at_javadesktop.org>
Date: Thu, 12 Jul 2007 09:37:18 PDT

Note that I am not trying to fix the Exception, I put that in myself to get a stack-trace of the code calling it.

Thing is a @MappedSuperClass, Thing.getLabels() is a vanilla getter (except for the debugging code mentioned above) When I show SQL, it is initializing the List returned by the getter and running the appropriate queries, which is not what I wanted when I marked the relationship to be LAZY.

I hope that clarifies.
[Message sent by forum member 'miklernout' (miklernout)]

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