users@glassfish.java.net

Re: How does an explicit EntityManager.lock() call prevent dirty reads in JPA

From: <glassfish_at_javadesktop.org>
Date: Mon, 10 Nov 2008 10:38:45 PST

http://en.wikipedia.org/wiki/Isolation_(database_systems)#READ_COMMITTED

The database would prevent T2 from seeing T1's changes until T1 commits, hence there is no dirty read to begin with. All modifications take place atomically at commit time, not before.
[Message sent by forum member 'cowwoc' (cowwoc)]

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