users@glassfish.java.net

Re: Persistence / JPA / TopLink: lost updates

From: <glassfish_at_javadesktop.org>
Date: Fri, 01 Feb 2008 07:24:06 PST

Since the container do not have to do any updates before the transactions commits I guess that any changes done to an entity that is removed before the transaction commits is not necessary to execute, although they might be. If you really want to be sure that your update is performed before you delete it you have to manually commit the update before you remove the entity and commit that change.

That's my theory anyway...
[Message sent by forum member 'woel' (woel)]

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