More JPA-2 locking support is checked in for HHH-4546. As per Steve's
suggestion, we can now customize dialects to control how core locking
(optimistic +pessimistic) is performed against different database servers.
We now have the following additional Hibernate LockModes that are used
for JPA-
On 10/30/2009 02:08 PM, Steve Ebersole wrote:
> As I said on IRC, my belief is that we should expand this set of lock
> modes specifically to include NO_WAIT variants. Its really just a
> question of for which modes it makes sense. The spec says
> "javax.persistence.lock.timeout" is "defined by t
As I said on IRC, my belief is that we should expand this set of lock
modes specifically to include NO_WAIT variants. Its really just a
question of for which modes it makes sense. The spec says
"javax.persistence.lock.timeout" is "defined by this specification for
use in pessimistic locking" so o
How should we handle the _NOWAIT variants for the three Pessimistic
modes? The JPA2 style is to use the "javax.persistence.lock.timeout
(time in milliseconds, with 0 meaning no wait).
Internally, we need Hibernate core to support the three pessimistic lock
modes (read, write, force_increment)