Skip to content

Commit

Permalink
HHH-10537 : Fix test case to work pre-5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gbadner committed Feb 21, 2017
1 parent caa9843 commit 6637fb0
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -216,11 +216,15 @@ public void testMapKeyExpressionDereferenceInSelect() {
@Test
@TestForIssue(jiraKey = "HHH-10537")
public void testLeftJoinMapAndUseKeyExpression() {
doInHibernate( this::sessionFactory, s -> {
Session s = openSession();
s.getTransaction().begin();
{
// 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();
assertEquals( 2, keyValues.size() );
} );
}
s.getTransaction().commit();
s.close();
}

@Override
Expand Down

0 comments on commit 6637fb0

Please sign in to comment.