HHH-18017 Fix discriminator in shallow query cache check
This commit is contained in:
parent
ad3d985b52
commit
1fe8b3c0d5
|
@ -609,7 +609,7 @@ public class EntityInitializerImpl extends AbstractInitializer<EntityInitializer
|
|||
EntityPersister entityDescriptor)
|
||||
throws WrongClassException {
|
||||
if ( discriminatorAssembler == null
|
||||
|| rowProcessingState.isQueryCacheHit() && !entityDescriptor.storeDiscriminatorInShallowQueryCacheLayout() ) {
|
||||
|| rowProcessingState.isQueryCacheHit() && entityDescriptor.useShallowQueryCacheLayout() && !entityDescriptor.storeDiscriminatorInShallowQueryCacheLayout() ) {
|
||||
return entityDescriptor;
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue