We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8432d65 commit 2160dd8Copy full SHA for 2160dd8
hibernate-core/src/main/java/org/hibernate/sql/results/graph/entity/AbstractEntityInitializer.java
@@ -378,7 +378,7 @@ else if ( concreteDescriptor != null
378
private EntityPersister determineConcreteEntityDescriptor(RowProcessingState rowProcessingState)
379
throws WrongClassException {
380
if ( discriminatorAssembler == null
381
- || rowProcessingState.isQueryCacheHit() && !entityDescriptor.storeDiscriminatorInShallowQueryCacheLayout() ) {
+ || rowProcessingState.isQueryCacheHit() && entityDescriptor.useShallowQueryCacheLayout() && !entityDescriptor.storeDiscriminatorInShallowQueryCacheLayout() ) {
382
return entityDescriptor;
383
}
384
else {
0 commit comments