Skip to content

Commit

Permalink
HHH-8776 fix check style issue
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanQingyangXu authored and sebersole committed Jan 29, 2020
1 parent f3cfff5 commit 29f905d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -457,14 +457,16 @@ private static Boolean isEagerFetchGraph(SharedSessionContractImplementor sessio
AttributeNodeImplementor<Object> attributeNode = context.findAttributeNode( associationName );
if ( attributeNode != null ) {
if ( associationType.isCollectionType() ) {
// to do: deal with Map's key and value
session.setFetchGraphLoadContext( null );
}
else {
// set 'fetchGraphContext' to sub-graph so graph is explored further (internal loading)
GraphImplementor<?> subContext = attributeNode.getSubGraphMap().get( associationType.getReturnedClass() );
if ( subContext != null ) {
session.setFetchGraphLoadContext( subContext );
} else {
}
else {
session.setFetchGraphLoadContext( null );
}
}
Expand Down

0 comments on commit 29f905d

Please sign in to comment.