users@glassfish.java.net

Re: entityManager problem related to flush?

From: <glassfish_at_javadesktop.org>
Date: Fri, 29 Jun 2007 14:55:48 PDT

While Markus is right, and you should use em.merge() to update an instance, delete-insert of an entity with the same PK in the same transaction should work without extra steps from the user.

-marina
[Message sent by forum member 'mvatkina' (mvatkina)]

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