AssertionError in StandardEntityGraphTraversalStateImpl.traverse when using entity graph

This commit is contained in:
Andrea Boriero 2023-02-15 00:00:20 +01:00 committed by Christian Beikov
parent d0c07bdf89
commit 6d69318aae
2 changed files with 2 additions and 2 deletions

View File

@ -7162,7 +7162,7 @@ public abstract class BaseSqmToSqlAstConverter<T extends Statement> extends Base
.getEntityMappingType()
.getIdentifierMapping();
final Fetchable fetchableIdentifierMapping = (Fetchable) identifierMapping;
return createFetch( fetchParent, fetchableIdentifierMapping, true );
return createFetch( fetchParent, fetchableIdentifierMapping, false );
}
private Fetch createFetch(FetchParent fetchParent, Fetchable fetchable, Boolean isKeyFetchable) {

View File

@ -69,7 +69,7 @@ public class StandardEntityGraphTraversalStateImpl implements EntityGraphTravers
final Class<?> subgraphMapKey;
if ( fetchable instanceof PluralAttributeMapping ) {
PluralAttributeMapping pluralAttributeMapping = (PluralAttributeMapping) fetchable;
final PluralAttributeMapping pluralAttributeMapping = (PluralAttributeMapping) fetchable;
if ( exploreKeySubgraph ) {
subgraphMap = attributeNode.getKeySubGraphMap();