HHH-5396 JPQL KEY(), ENTRY() and VALUE() does not recognize alias refs

This commit is contained in:
Strong Liu 2012-05-31 11:17:16 +08:00
parent 1de554b68a
commit ba5a139bd1
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ public class ASTParserLoadingTest extends BaseCoreFunctionalTestCase {
s = openSession();
s.beginTransaction();
results = s.createQuery( "select entry(f) from Human h from h.family f" ).list();
results = s.createQuery( "select entry(f) from Human h join h.family f" ).list();
assertEquals( 1, results.size() );
result = results.get(0);
assertTrue( Map.Entry.class.isAssignableFrom( result.getClass() ) );