PessimisticLockScope.EXTENDED - JPA enum constant
In addition to the behavior for PessimisticLockScope.NORMAL
, element collections and relationships owned by the entity that are contained in join tables will be locked if the javax.persistence.lock.scope
property is specified with a value of PessimisticLockScope.EXTENDED
. The state of entities referenced by such relationships will not be locked (unless those entities are explicitly locked). Locking such a relationship or element collection generally locks only the rows in the join table or collection table for that relationship or collection. This means that phantoms will be possible. - Since:
- JPA 2.0