users@glassfish.java.net

Re: JPA : Trouble with a ManyToMany

From: <glassfish_at_javadesktop.org>
Date: Mon, 05 Apr 2010 10:35:27 PDT

Hi Manta,
I have faced the problem before.
I don't know how you do that, but the Acteur object which is created before must be merged first and then the CD object. Then try the setter method in CD to add the first object into the acteurs list in CD entity.
If you are running the application out of the container, try conducting this whole in the same transaction.
Regards
Youness
[Message sent by forum member 'youness_teimoury']

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