HHH-9629 - l2 cache key constructed wrong for entity with inheritance when fetching lazy property

This commit is contained in:
Steve Ebersole 2015-05-27 11:53:46 -05:00
parent 8d6c318797
commit 765b39cf2e
1 changed files with 1 additions and 1 deletions

View File

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