mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-07 11:48:18 +00:00
AssertionError in StandardEntityGraphTraversalStateImpl.traverse when using entity graph
This commit is contained in:
parent
5589583ca6
commit
35fbd6695a
@ -7162,7 +7162,7 @@ public Fetch visitIdentifierFetch(EntityResultGraphNode fetchParent) {
|
||||
.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 TraversalResult traverse(FetchParent fetchParent, Fetchable fetchable, bo
|
||||
final Class<?> subgraphMapKey;
|
||||
|
||||
if ( fetchable instanceof PluralAttributeMapping ) {
|
||||
PluralAttributeMapping pluralAttributeMapping = (PluralAttributeMapping) fetchable;
|
||||
final PluralAttributeMapping pluralAttributeMapping = (PluralAttributeMapping) fetchable;
|
||||
|
||||
if ( exploreKeySubgraph ) {
|
||||
subgraphMap = attributeNode.getKeySubGraphMap();
|
||||
|
Loading…
x
Reference in New Issue
Block a user