HHH-10537 - Fixed conflict while merging changes from HHH-10557.

This commit is contained in:
Chris Cranford 2017-02-01 12:51:06 -05:00
parent 5d9414257f
commit 3f1111ee5c
1 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,7 @@ public class CollectionMapWithComponentValueTest extends BaseCoreFunctionalTestC
s.save( baseTestEntity2 );
TestEntity testEntity2 = new TestEntity();
Map<KeyValue, EmbeddableValue> map2 = new HashMap<>();
map.put( keyValue2, embeddableValue );
map2.put( keyValue2, embeddableValue );
testEntity2.values = map2;
s.save( testEntity2 );
} );
@ -192,6 +192,7 @@ public class CollectionMapWithComponentValueTest extends BaseCoreFunctionalTestC
doInHibernate( this::sessionFactory, s -> {
// Assert that a left join is used for joining the map key entity table
List keyValues= s.createQuery( "select key(v) from BaseTestEntity bte left join bte.entities te left join te.values v" ).list();
System.out.println( keyValues );
assertEquals( 2, keyValues.size() );
} );
}