Refactor FetchConfig

This commit is contained in:
rob bygrave
2021-02-12 21:01:57 +13:00
parent 213562fcf1
commit e0c3a92b60
23 changed files with 272 additions and 492 deletions
@@ -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();