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