diff --git a/hibernate-core/src/test/java/org/hibernate/test/hql/CollectionMapWithComponentValueTest.java b/hibernate-core/src/test/java/org/hibernate/test/hql/CollectionMapWithComponentValueTest.java index 60806d51cf..6cc404c6bc 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/hql/CollectionMapWithComponentValueTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/hql/CollectionMapWithComponentValueTest.java @@ -73,7 +73,7 @@ public class CollectionMapWithComponentValueTest extends BaseCoreFunctionalTestC s.save( baseTestEntity2 ); TestEntity testEntity2 = new TestEntity(); Map 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() ); } ); }