HHH-8776 fix check style issue

This commit is contained in:
Nathan Xu 2020-01-23 07:39:51 -05:00 committed by Steve Ebersole
parent f3cfff5cee
commit 29f905dafc
1 changed files with 3 additions and 1 deletions

View File

@ -457,6 +457,7 @@ public final class TwoPhaseLoad {
AttributeNodeImplementor<Object> attributeNode = context.findAttributeNode( associationName ); AttributeNodeImplementor<Object> attributeNode = context.findAttributeNode( associationName );
if ( attributeNode != null ) { if ( attributeNode != null ) {
if ( associationType.isCollectionType() ) { if ( associationType.isCollectionType() ) {
// to do: deal with Map's key and value
session.setFetchGraphLoadContext( null ); session.setFetchGraphLoadContext( null );
} }
else { else {
@ -464,7 +465,8 @@ public final class TwoPhaseLoad {
GraphImplementor<?> subContext = attributeNode.getSubGraphMap().get( associationType.getReturnedClass() ); GraphImplementor<?> subContext = attributeNode.getSubGraphMap().get( associationType.getReturnedClass() );
if ( subContext != null ) { if ( subContext != null ) {
session.setFetchGraphLoadContext( subContext ); session.setFetchGraphLoadContext( subContext );
} else { }
else {
session.setFetchGraphLoadContext( null ); session.setFetchGraphLoadContext( null );
} }
} }