int[] ages = {4, 7, 9};
SqlExpression e = Cnd.exps("age", ">", 35).and("id", "<", 47);
SqlExpression e2 = Cnd.exps("name", "\tLIKE ", "%t%")
.and("age", "IN \n\r", ages)
.or(e);
Condition c = Cnd.where("id", "=", 37)
.and(e)
.or(e2)
.asc("age")
.desc("id");
String exp = "WHERE wid=37 AND (age>35 AND wid<47) OR (wname LIKE '%t%' AND age IN (4,7,9) OR (age>35 AND wid<47)) ORDER BY age ASC, wid DESC";
assertEquals(exp, c.toSql(en).trim());
}