Re: [hibernate-dev] JPA2 locking followup...

2009-11-12 Thread Scott Marlow
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-

Re: [hibernate-dev] JPA2 locking followup...

2009-10-30 Thread Scott Marlow
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

Re: [hibernate-dev] JPA2 locking followup...

2009-10-30 Thread Steve Ebersole
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

Re: [hibernate-dev] JPA2 locking followup...

2009-10-30 Thread Scott Marlow
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)