diff --git a/querydsl-core/src/main/java/com/mysema/query/Query.java b/querydsl-core/src/main/java/com/mysema/query/Query.java index ff6a08a95..bfe121400 100644 --- a/querydsl-core/src/main/java/com/mysema/query/Query.java +++ b/querydsl-core/src/main/java/com/mysema/query/Query.java @@ -22,8 +22,8 @@ public interface Query>{ A fullJoin(EEntity o); A leftJoin(EEntity o); A with(Expr.EBoolean o); - A where(Expr.EBoolean o); + A where(Expr.EBoolean... o); A groupBy(Expr... o); - A having(Expr.EBoolean o); + A having(Expr.EBoolean... o); A orderBy(OrderSpecifier... o); } \ No newline at end of file diff --git a/querydsl-core/src/main/java/com/mysema/query/QueryBase.java b/querydsl-core/src/main/java/com/mysema/query/QueryBase.java index 2d36ecaf6..4fc4ef867 100644 --- a/querydsl-core/src/main/java/com/mysema/query/QueryBase.java +++ b/querydsl-core/src/main/java/com/mysema/query/QueryBase.java @@ -52,8 +52,8 @@ public class QueryBase> implements Quer return (A) this; } - public A having(Expr.EBoolean o) { - having.and(o); + public A having(Expr.EBoolean... o) { + for (Expr.EBoolean b : o) having.and(b); return (A) this; } @@ -87,8 +87,8 @@ public class QueryBase> implements Quer return (A) this; } - public A where(Expr.EBoolean o) { - where.and(o); + public A where(Expr.EBoolean... o) { + for (Expr.EBoolean b : o) where.and(b); return (A) this; }