Specifically the expressions in the filterMany are not being evaluated.
Issue raised by Daryl.
I have reproduced it with:
List<OrderAggregate> list2 = Ebean.find(OrderAggregate.class) .setRawSql(rawSql) .fetch("order", new FetchConfig().query()) .fetch("order.details", new FetchConfig().query()) .where().gt("order.id", 2) .having().gt("totalAmount", 10) .filterMany("order.details").gt("unitPrice", 2d) .findList();
results in:
...where od.id > 0 and o.id = ? and order.details.unitPrice > ? ...
Ok, fixed in HEAD.