HHH-13633 : Fix test case queries to order results

This commit is contained in:
Gail Badner 2019-10-16 13:53:53 -07:00
parent 388b62f049
commit 81d5f5eb21
3 changed files with 6 additions and 6 deletions

View File

@ -80,7 +80,7 @@ public class QueryScrollingWithInheritanceTest extends BaseNonConfigCoreFunction
try {
statelessSession.beginTransaction();
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
);
if ( getDialect() instanceof DB2Dialect ) {
@ -134,7 +134,7 @@ public class QueryScrollingWithInheritanceTest extends BaseNonConfigCoreFunction
try {
session.beginTransaction();
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
);
if ( getDialect() instanceof DB2Dialect ) {

View File

@ -81,7 +81,7 @@ public class QueryScrollingWithInheritanceProxyTest extends BaseNonConfigCoreFun
try {
statelessSession.beginTransaction();
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
);
if ( getDialect() instanceof DB2Dialect ) {
@ -145,7 +145,7 @@ public class QueryScrollingWithInheritanceProxyTest extends BaseNonConfigCoreFun
try {
session.beginTransaction();
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
);
if ( getDialect() instanceof DB2Dialect ) {

View File

@ -74,7 +74,7 @@ public class QueryScrollingWithInheritanceTest extends BaseNonConfigCoreFunction
try {
statelessSession.beginTransaction();
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
);
if ( getDialect() instanceof DB2Dialect ) {
@ -138,7 +138,7 @@ public class QueryScrollingWithInheritanceTest extends BaseNonConfigCoreFunction
try {
session.beginTransaction();
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
);
if ( getDialect() instanceof DB2Dialect ) {