Add query.apply(PathProperties)

This commit is contained in:
Rob Bygrave
2014-11-12 22:24:37 +13:00
parent eaee3a9c02
commit 2ec50d2c71
6 changed files with 44 additions and 16 deletions
@@ -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)");