mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#99 - ENH (419) : Simplify aggregation queries
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user