PessimisticLockScope.EXTENDED - JPA enum constant
In addition to the behavior for
, element collections and relationships owned by the entity that are contained in join tables will be locked if the
property is specified with a value of
. 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.
- JPA 2.0