HHH-15666 When a reference entry is found in the Second Level Cache there is not need to set its values
This commit is contained in:
parent
865f28a5d5
commit
28b253512e
|
@ -590,6 +590,8 @@ public abstract class AbstractEntityInitializer extends AbstractFetchParentAcces
|
|||
|
||||
if ( instance != null ) {
|
||||
// EARLY EXIT!!!
|
||||
// because the second level cache has reference cache entries, the entity is initialized
|
||||
isInitialized = true;
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue