From e3fac7c622497d987ccd32d83853bda0095f8bff Mon Sep 17 00:00:00 2001 From: Rob Bygrave Date: Thu, 22 Feb 2018 22:43:14 +1300 Subject: [PATCH] #1269 - Paging queries should not ALWAYS append an order by ID ... but only when the order by is empty --- src/main/java/io/ebeaninternal/api/SpiQuery.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/io/ebeaninternal/api/SpiQuery.java b/src/main/java/io/ebeaninternal/api/SpiQuery.java index 426f450bb..2be96bfd9 100644 --- a/src/main/java/io/ebeaninternal/api/SpiQuery.java +++ b/src/main/java/io/ebeaninternal/api/SpiQuery.java @@ -588,6 +588,11 @@ public interface SpiQuery extends Query, TxnProfileEventCodes { */ boolean isRawSql(); + /** + * Return true if the query should have an order by appended automatically. + */ + boolean checkPagingOrderBy(); + /** * Return the Order By clause or null if there is none defined. */