users@glassfish.java.net

Re: Bug in Hibernate JPA when Persisting an Entity

From: <glassfish_at_javadesktop.org>
Date: Fri, 25 May 2007 14:41:37 PDT

After the user updates the object and returns it to the server-side, have you tried using entityManager.merge()?

If the object is detached, sent to the front-end and you try to commit it, you will get an exception. You must re-attach the entity with the persistence context using merge().

Hope that helps,

Andrew
[Message sent by forum member 'asmithgf' (asmithgf)]

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