Refactor FetchConfig

This commit is contained in:
rob bygrave committed 2021-02-12 21:01:57 +13:00
1 parent 213562fcf1
commit e0c3a92b60
23 files changed
+272 -492

No files matched your search

@@ -24,7 +24,7 @@ public class TestLazyLoadEmptyCollection extends TransactionalTestCase {
Ebean.save(c);
List<Customer> list = Ebean.find(Customer.class)
.fetch("contacts", new FetchConfig().query(0))
.fetch("contacts", new FetchConfig().query())
.fetch("contacts.notes", new FetchConfig().query(100))
.findList();
@@ -105,7 +105,7 @@ public class TestSecondaryQueries extends TransactionalTestCase {
Query<Customer> query = Ebean.find(Customer.class)
.select("name")
.fetch("contacts", "+query")
.fetchQuery("contacts")
.setId(custId);
LoggedSqlCollector.start();