mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Refactor FetchConfig
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user