HHH-13633 : Fix test case queries to order results
(cherry picked from commit 81d5f5eb21
)
This commit is contained in:
parent
52ceafaa87
commit
f56a5847ec
|
@ -80,7 +80,7 @@ public class QueryScrollingWithInheritanceTest extends BaseNonConfigCoreFunction
|
||||||
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 ) {
|
||||||
|
@ -134,7 +134,7 @@ public class QueryScrollingWithInheritanceTest extends BaseNonConfigCoreFunction
|
||||||
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 ) {
|
||||||
|
|
|
@ -81,7 +81,7 @@ public class QueryScrollingWithInheritanceProxyTest extends BaseNonConfigCoreFun
|
||||||
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 QueryScrollingWithInheritanceProxyTest extends BaseNonConfigCoreFun
|
||||||
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 ) {
|
||||||
|
|
|
@ -74,7 +74,7 @@ public class QueryScrollingWithInheritanceTest extends BaseNonConfigCoreFunction
|
||||||
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 ) {
|
||||||
|
@ -138,7 +138,7 @@ public class QueryScrollingWithInheritanceTest extends BaseNonConfigCoreFunction
|
||||||
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 ) {
|
||||||
|
|
Loading…
Reference in New Issue