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:
Andrea Boriero 2022-11-04 12:47:09 +01:00 committed by Andrea Boriero
parent 865f28a5d5
commit 28b253512e
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}
}