Skip to content

Group query conditions

xjodoin edited this page Mar 14, 2013 · 1 revision

Group conditiond together (A and B or C...)

Entity from = from(Entity.class);
OnGoingLogicalCondition condition = condition(from.getCode()).eq("test").or(from.getCode()).eq("test2");
where(from.getName()).eq("test").and(condition);
Query<Entity> select = select(from);
Clone this wiki locally