diff --git a/hibernate-core/src/main/java/org/hibernate/LockMode.java b/hibernate-core/src/main/java/org/hibernate/LockMode.java index 18e5498df5..72a42843f9 100644 --- a/hibernate-core/src/main/java/org/hibernate/LockMode.java +++ b/hibernate-core/src/main/java/org/hibernate/LockMode.java @@ -147,6 +147,12 @@ public enum LockMode { return NONE; } + for ( LockMode lockMode : LockMode.values() ) { + if ( lockMode.externalForm.equals( externalForm ) ) { + return lockMode; + } + } + for ( LockMode lockMode : LockMode.values() ) { if ( lockMode.externalForm.equalsIgnoreCase( externalForm ) ) { return lockMode;