EXTENDED
In addition to the locking behavior specified for PessimisticLockScope.NORMAL, element collections and relationships owned by the entity that are contained in join tables are locked if the property
jakarta.persistence.lock.scope is specified with a value of PessimisticLockScope#EXTENDED. The state of entities referenced by such relationships is not 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 are possible. - Since:
- JPA 2.0