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 <[email protected]> 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.

Reply via email to