You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by dt...@sparnord.dk on 2009/03/19 14:32:41 UTC
Vedr.: Re: NullPointerException?
Hi,
Sorry, I should have mentioned, that yes the two classes are annotated as
entities.
It seems the problem may have been related to me forgetting to på an
@PersistenceUnit annotation on the class.
However, I have tried adressing the problem in the meantime by changing
the relationship to be many-to-many. But for some reason this just leaves
the collection as "null" in all circumstances, even though lazy fetching
is used (by default).
Hmm - help appreciated :)
-dennis
David Beer <da...@googlemail.com> skrev den 19-03-2009 13:13:35:
> Hi
>
> Are your classes declared as entities using the @Entity annotation at
the
> top of the class file.