mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Add query.apply(PathProperties)
This commit is contained in:
@@ -69,9 +69,9 @@ public class TestJsonMap extends BaseTestCase {
|
||||
|
||||
PathProperties pathProperties = PathProperties.parse("(id,status,name,shippingAddress(id,line1,city),billingAddress(*),contacts(*))");
|
||||
|
||||
Query<Customer> customerQuery = Ebean.find(Customer.class);
|
||||
pathProperties.apply(customerQuery);
|
||||
List<Customer> customers = customerQuery.findList();
|
||||
List<Customer> customers = Ebean.find(Customer.class)
|
||||
.apply(pathProperties)
|
||||
.findList();
|
||||
|
||||
JsonWriteOptions options = JsonWriteOptions.parsePath("(id,status,name)");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user