diff --git a/hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/lazy/QueryScrollingWithInheritanceTest.java b/hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/lazy/QueryScrollingWithInheritanceTest.java index 814f8acb87..e9be4a677e 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/lazy/QueryScrollingWithInheritanceTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/lazy/QueryScrollingWithInheritanceTest.java @@ -80,7 +80,7 @@ public class QueryScrollingWithInheritanceTest extends BaseNonConfigCoreFunction try { statelessSession.beginTransaction(); Query 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 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 ) { diff --git a/hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/lazy/proxy/QueryScrollingWithInheritanceProxyTest.java b/hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/lazy/proxy/QueryScrollingWithInheritanceProxyTest.java index 15d60ce864..680bf1b702 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/lazy/proxy/QueryScrollingWithInheritanceProxyTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/bytecode/enhancement/lazy/proxy/QueryScrollingWithInheritanceProxyTest.java @@ -81,7 +81,7 @@ public class QueryScrollingWithInheritanceProxyTest extends BaseNonConfigCoreFun try { statelessSession.beginTransaction(); Query 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 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 ) { diff --git a/hibernate-core/src/test/java/org/hibernate/test/hqlfetchscroll/QueryScrollingWithInheritanceTest.java b/hibernate-core/src/test/java/org/hibernate/test/hqlfetchscroll/QueryScrollingWithInheritanceTest.java index 46603471ae..1007a8c711 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/hqlfetchscroll/QueryScrollingWithInheritanceTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/hqlfetchscroll/QueryScrollingWithInheritanceTest.java @@ -74,7 +74,7 @@ public class QueryScrollingWithInheritanceTest extends BaseNonConfigCoreFunction try { statelessSession.beginTransaction(); Query 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 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 ) {