users@glassfish.java.net

Re: Strange Errors with OneToOne and ManyToOne relations

From: <glassfish_at_javadesktop.org>
Date: Sun, 06 Jul 2008 15:21:05 PDT

Ok, I found out what caused this massive headache:

The Jupiter -> @ManyToOne -> Mars relation was annotated with a FetchType=FetchType.LAZY property which caused this error. Either setting both relations to the same FetchType or removing the FetchType Property completely fixed this issue.
I got the Idea from this issue:

https://glassfish.dev.java.net/issues/show_bug.cgi?id=3516
[Message sent by forum member 'nsn' (nsn)]

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