HHH-9629 - l2 cache key constructed wrong for entity with inheritance when fetching lazy property
This commit is contained in:
parent
8d6c318797
commit
765b39cf2e
|
@ -222,7 +222,7 @@ public class BatchFetchQueue {
|
|||
final CacheKey key = context.getSession().generateCacheKey(
|
||||
entityKey.getIdentifier(),
|
||||
persister.getIdentifierType(),
|
||||
persister.getRootEntityName()
|
||||
persister.getRootEntityName()
|
||||
);
|
||||
return CacheHelper.fromSharedCache( context.getSession(), key, persister.getCacheAccessStrategy() ) != null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue