HHH-6781 : Correct test case to work in 5.1
This commit is contained in:
parent
8b139aea14
commit
b51533e8f8
|
@ -182,8 +182,8 @@ public class BasicHibernateAnnotationsTest extends BaseCoreFunctionalTestCase {
|
||||||
s = openSession();
|
s = openSession();
|
||||||
tx = s.beginTransaction();
|
tx = s.beginTransaction();
|
||||||
|
|
||||||
Query<Doctor> query = s.createQuery( "from " + Doctor.class.getName(), Doctor.class );
|
Query query = s.createQuery( "from " + Doctor.class.getName() );
|
||||||
List<Doctor> list = query.getResultList();
|
List<Doctor> list = query.list();
|
||||||
|
|
||||||
assertEquals( 2, list.size() );
|
assertEquals( 2, list.size() );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue