With optimistic concurrency, the WHERE clause compare version value to the one at the beginning of the transaction (or the 1st load of an entity), so in T2 it'll check WHERE pk = 1 AND Version = n. And that would fail, right?
Regards,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]
http://forums.java.net/jive/thread.jspa?messageID=316849