mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-10 16:46:19 +00:00
Add query.apply(PathProperties)
This commit is contained in:
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)");
|
||||
|
||||
|
||||
Reference in new issue
Block a user