Fix for #172 - Regression: @Where predicates not applied in eager fetch (but are on lazy load)

This commit is contained in:
rbygrave
2014-07-18 23:35:14 +12:00
parent 6403a83e0e
commit 2dca1bdf5b
4 changed files with 68 additions and 2 deletions
@@ -51,7 +51,7 @@ public class TestQueryFetchManyTwoDeep extends BaseTestCase {
SpiQuery<?> secondaryQuery = secondaryQueries.get(0);
String secondarySql = secondaryQuery.getGeneratedSql();
Assert.assertTrue(secondarySql.contains("from o_order_detail t0 where (t0.order_id) in"));
Assert.assertTrue(secondarySql.contains("from o_order_detail t0 where t0.id > 0 and (t0.order_id) in"));
// select t0.order_id c0, t0.id c1, t0.order_qty c2, t0.ship_qty c3, t0.unit_price c4, t0.cretime c5, t0.updtime c6, t0.order_id c7, t0.product_id c8
// from o_order_detail t0