Deprecate orderBy() migrate to order()

This commit is contained in:
rob bygrave
2020-02-18 23:27:43 +13:00
parent 6961bf5787
commit 168dacffa7
39 changed files with 100 additions and 134 deletions
@@ -24,7 +24,7 @@ public class TestQueryFindEach extends BaseTestCase {
Query<Customer> query
= server.find(Customer.class)
.setAutoTune(false)
.fetch("contacts", new FetchConfig().query(2)).where().gt("id", 0).orderBy("id")
.fetch("contacts", new FetchConfig().query(2)).where().gt("id", 0).order("id")
.setMaxRows(2);
final AtomicInteger counter = new AtomicInteger(0);
@@ -48,7 +48,7 @@ public class TestQueryFindEach extends BaseTestCase {
EbeanServer server = Ebean.getServer(null);
Query<Customer> query = server.find(Customer.class).setAutoTune(false)
.fetch("contacts", new FetchConfig().query(2)).where().gt("id", 0).orderBy("id")
.fetch("contacts", new FetchConfig().query(2)).where().gt("id", 0).order("id")
.setMaxRows(2);
final AtomicInteger counter = new AtomicInteger(0);