AssertionError in StandardEntityGraphTraversalStateImpl.traverse when using entity graph
This commit is contained in:
parent
d0c07bdf89
commit
6d69318aae
|
@ -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) {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue