Add query.apply(PathProperties)

This commit is contained in:
Rob Bygrave committed 2014-11-12 22:24:37 +13:00
1 parent eaee3a9c02
commit 2ec50d2c71
6 files changed
+44 -16

No files matched your search

@@ -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)");