Skip to content

Commit

Permalink
HHH-13633 : Fix test case queries to order results
Browse files Browse the repository at this point in the history
  • Loading branch information
gbadner committed Oct 16, 2019
1 parent 388b62f commit 81d5f5e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Expand Up @@ -80,7 +80,7 @@ public void testScrollableWithStatelessSession() {
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 ) {
Expand Down Expand Up @@ -134,7 +134,7 @@ public void testScrollableWithSession() {
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 ) {
Expand Down
Expand Up @@ -81,7 +81,7 @@ public void testScrollableWithStatelessSession() {
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 ) {
Expand Down Expand Up @@ -145,7 +145,7 @@ public void testScrollableWithSession() {
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 ) {
Expand Down
Expand Up @@ -74,7 +74,7 @@ public void testScrollableWithStatelessSession() {
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 ) {
Expand Down Expand Up @@ -138,7 +138,7 @@ public void testScrollableWithSession() {
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 ) {
Expand Down

0 comments on commit 81d5f5e

Please sign in to comment.