HHH-6781 : Correct test case to work in 5.1

This commit is contained in:
Gail Badner 2018-07-19 14:47:51 -07:00
parent 8b139aea14
commit b51533e8f8
1 changed files with 2 additions and 2 deletions

View File

@ -182,8 +182,8 @@ public class BasicHibernateAnnotationsTest extends BaseCoreFunctionalTestCase {
s = openSession();
tx = s.beginTransaction();
Query<Doctor> query = s.createQuery( "from " + Doctor.class.getName(), Doctor.class );
List<Doctor> list = query.getResultList();
Query query = s.createQuery( "from " + Doctor.class.getName() );
List<Doctor> list = query.list();
assertEquals( 2, list.size() );