#99 - ENH (419) : Simplify aggregation queries

This commit is contained in:
Rob Bygrave
2016-11-02 22:10:22 +13:00
parent 18f943ab2b
commit 3526f71f0a
33 changed files with 559 additions and 217 deletions
@@ -17,10 +17,12 @@ public class TestOrderTotalAmountFormula extends BaseTestCase {
ResetBasicData.reset();
List<Customer> l0 = Ebean.find(Customer.class).select("id, name")
.fetch("orders", "status, totalAmount").where().eq("orders.details.product.name", "Desk")
.like("contacts.firstName", "Ji%")
List<Customer> l0 = Ebean.find(Customer.class)
.select("id, name")
.fetch("orders", "status, totalAmount")
.where()
.eq("orders.details.product.name", "Desk")
.like("contacts.firstName", "Ji%")
.findList();
for (Customer c0 : l0) {