- Rob.
... so you can use:
- fetch in the query language
- fetch on the Query object (criteria API)
Note: there is a FetchConfig which is pretty much an exact copy of
JoinConfig.
You have to use FetchConfig with the query.fetch(...) methods.
When folks move over to using "fetch" ("join" will still work for some
time) ... with the Query api when you change to use the "fetch"
methods any JoinConfig objects need to change to FetchConfig objects.
At some point the join methods will become deprecated and with it the
JoinConfig object will become deprecated.
Example:
List<Customer> list = Ebean.find(Customer.class)
.select("id, name, status, shippingAddress")
.fetch("billingAddress", new FetchConfig().query())
.fetch("billingAddress.country","*")
.order().desc("id")
.findList();
Cheers, Rob.