HHH-12572 - Exclude LockMode.WRITE from loader creation loop
This commit is contained in:
parent
24cfffeec4
commit
4bae1ca810
|
@ -4136,7 +4136,7 @@ public abstract class AbstractEntityPersister
|
|||
// The loaders for the other lock modes are lazily loaded and will later be stored in this map,
|
||||
// unless this setting is disabled
|
||||
if ( ! factory.getSessionFactoryOptions().isDelayBatchFetchLoaderCreationsEnabled() ) {
|
||||
for ( LockMode lockMode : EnumSet.complementOf( EnumSet.of( LockMode.NONE, LockMode.READ ) ) ) {
|
||||
for ( LockMode lockMode : EnumSet.complementOf( EnumSet.of( LockMode.NONE, LockMode.READ, LockMode.WRITE ) ) ) {
|
||||
loaders.put( lockMode, createEntityLoader( lockMode ) );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue