openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grzegorz Borkowski (JIRA)" <j...@apache.org>
Subject [jira] Created: (OPENJPA-1451) Provide additional optimistic lock options
Date Tue, 29 Dec 2009 13:10:29 GMT
Provide additional optimistic lock options
------------------------------------------

                 Key: OPENJPA-1451
                 URL: https://issues.apache.org/jira/browse/OPENJPA-1451
             Project: OpenJPA
          Issue Type: Improvement
    Affects Versions: 2.0.0-M3
            Reporter: Grzegorz Borkowski


The standard @Version -based optimistic locking in JPA is too much limited in many cases.
Often you need to have optimistic lock more column(cell)-level then record-level based. It
can be accomplished by using old value of the modified column(s) in WHERE clause, instead
of using @Version column. Other JPA implementations already provide such extensions, it would
be good if OpenJPA had it too.

E.g. in Hibernate it'd done by: @org.hibernate.annotations.Entity(optimisticLock=DIRTY)
and in EclipseLink: @org.eclipse.persistence.annotations.OptimisticLocking(type=CHANGED_COLUMNS)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message