HHH-10537 - Fixed conflict while merging changes from HHH-10557.
(cherry picked from commit 3f1111ee5c
)
This commit is contained in:
parent
6637fb08ec
commit
8e944ab0e0
|
@ -74,7 +74,7 @@ public class CollectionMapWithComponentValueTest extends BaseCoreFunctionalTestC
|
||||||
s.save( baseTestEntity2 );
|
s.save( baseTestEntity2 );
|
||||||
TestEntity testEntity2 = new TestEntity();
|
TestEntity testEntity2 = new TestEntity();
|
||||||
Map<KeyValue, EmbeddableValue> map2 = new HashMap<>();
|
Map<KeyValue, EmbeddableValue> map2 = new HashMap<>();
|
||||||
map.put( keyValue2, embeddableValue );
|
map2.put( keyValue2, embeddableValue );
|
||||||
testEntity2.values = map2;
|
testEntity2.values = map2;
|
||||||
s.save( testEntity2 );
|
s.save( testEntity2 );
|
||||||
}
|
}
|
||||||
|
@ -221,6 +221,7 @@ public class CollectionMapWithComponentValueTest extends BaseCoreFunctionalTestC
|
||||||
{
|
{
|
||||||
// Assert that a left join is used for joining the map key entity table
|
// 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();
|
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() );
|
assertEquals( 2, keyValues.size() );
|
||||||
}
|
}
|
||||||
s.getTransaction().commit();
|
s.getTransaction().commit();
|
||||||
|
|
Loading…
Reference in New Issue