HHH-13634 : Fix test case queries to order results

(cherry picked from commit 93a07453f0)
This commit is contained in:
Gail Badner 2019-10-17 12:04:19 -07:00 committed by gbadner
parent 04eba997e2
commit 81f42693dd
2 changed files with 8 additions and 8 deletions

View File

@ -81,7 +81,7 @@ public class QueryScrollingWithInheritanceEagerManyToOneTest extends BaseNonConf
try { try {
statelessSession.beginTransaction(); statelessSession.beginTransaction();
Query<Employee> query = statelessSession.createQuery( Query<Employee> query = statelessSession.createQuery(
"select distinct e from Employee e left join fetch e.otherEntities", "select distinct e from Employee e left join fetch e.otherEntities order by e.dept",
Employee.class Employee.class
); );
if ( getDialect() instanceof DB2Dialect ) { if ( getDialect() instanceof DB2Dialect ) {
@ -143,7 +143,7 @@ public class QueryScrollingWithInheritanceEagerManyToOneTest extends BaseNonConf
try { try {
session.beginTransaction(); session.beginTransaction();
Query<Employee> query = session.createQuery( Query<Employee> query = session.createQuery(
"select distinct e from Employee e left join fetch e.otherEntities", "select distinct e from Employee e left join fetch e.otherEntities order by e.dept",
Employee.class Employee.class
); );
if ( getDialect() instanceof DB2Dialect ) { if ( getDialect() instanceof DB2Dialect ) {

View File

@ -81,7 +81,7 @@ public class QueryScrollingWithInheritanceProxyEagerManyToOneTest extends BaseNo
try { try {
statelessSession.beginTransaction(); statelessSession.beginTransaction();
Query<Employee> query = statelessSession.createQuery( Query<Employee> query = statelessSession.createQuery(
"select distinct e from Employee e left join fetch e.otherEntities", "select distinct e from Employee e left join fetch e.otherEntities order by e.dept",
Employee.class Employee.class
); );
if ( getDialect() instanceof DB2Dialect ) { if ( getDialect() instanceof DB2Dialect ) {
@ -145,7 +145,7 @@ public class QueryScrollingWithInheritanceProxyEagerManyToOneTest extends BaseNo
try { try {
session.beginTransaction(); session.beginTransaction();
Query<Employee> query = session.createQuery( Query<Employee> query = session.createQuery(
"select distinct e from Employee e left join fetch e.otherEntities", "select distinct e from Employee e left join fetch e.otherEntities order by e.dept",
Employee.class Employee.class
); );
if ( getDialect() instanceof DB2Dialect ) { if ( getDialect() instanceof DB2Dialect ) {