users@glassfish.java.net

Re: JPA - entityManager.flush()

From: <glassfish_at_javadesktop.org>
Date: Tue, 15 May 2007 15:16:26 PDT

Huh? nope, if you modify a list of objects and then re-iterate over them of course they would be modified,

It is just that after the 'em.flush()', and BEFORE the transaction ends, some other processes loads these entities (by other entity manager / other ejbs/ etc...) and does not see the changes!


Marina, what 'parallel transaction' means? and what 'read-committed isolation level in the database' means?


As mentioned, my problem is that on the same time other processes loads these entities (or refresh them from DB) and does not see the modifications, since the transaction did not end yet over the affected entities.

Thanks.
[Message sent by forum member 'trouby' (trouby)]

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