users@glassfish.java.net

Re: Cannot persist detached object

From: <glassfish_at_javadesktop.org>
Date: Mon, 26 Feb 2007 16:31:28 PST

Marina -<p>

  I found a solution to my problems (thanks to some colleagues and the guys over on the #glassfish IRC channel).<p>

  Within my create() function, I needed to do a merge() instead of a persist.
<p>
   em.merge(dayStyleAssignments);
<p>

Thank-you for your help.
[Message sent by forum member 'aantix' (aantix)]

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