HHH-13634 : Fix test case queries to order results
(cherry picked from commit 93a07453f0
)
This commit is contained in:
parent
04eba997e2
commit
81f42693dd
|
@ -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 ) {
|
||||||
|
|
|
@ -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 ) {
|
||||||
|
|
Loading…
Reference in New Issue