HHH-18023 treat LockMode.WRITE as similar to PESSIMISTIC_FORCE_INCREMENT
consistent with the similar levels they have cc @beikov Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
parent
8a133ac120
commit
138e0bba01
|
@ -34,7 +34,6 @@ public final class LockModeConverter {
|
||||||
return LockModeType.NONE;
|
return LockModeType.NONE;
|
||||||
case OPTIMISTIC:
|
case OPTIMISTIC:
|
||||||
return LockModeType.OPTIMISTIC;
|
return LockModeType.OPTIMISTIC;
|
||||||
case WRITE: // no exact equivalent in JPA
|
|
||||||
case OPTIMISTIC_FORCE_INCREMENT:
|
case OPTIMISTIC_FORCE_INCREMENT:
|
||||||
return LockModeType.OPTIMISTIC_FORCE_INCREMENT;
|
return LockModeType.OPTIMISTIC_FORCE_INCREMENT;
|
||||||
case PESSIMISTIC_READ:
|
case PESSIMISTIC_READ:
|
||||||
|
@ -43,6 +42,7 @@ public final class LockModeConverter {
|
||||||
case UPGRADE_NOWAIT:
|
case UPGRADE_NOWAIT:
|
||||||
case UPGRADE_SKIPLOCKED:
|
case UPGRADE_SKIPLOCKED:
|
||||||
return LockModeType.PESSIMISTIC_WRITE;
|
return LockModeType.PESSIMISTIC_WRITE;
|
||||||
|
case WRITE: // no exact equivalent in JPA
|
||||||
case PESSIMISTIC_FORCE_INCREMENT:
|
case PESSIMISTIC_FORCE_INCREMENT:
|
||||||
return LockModeType.PESSIMISTIC_FORCE_INCREMENT;
|
return LockModeType.PESSIMISTIC_FORCE_INCREMENT;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue