From ea3d27fd5390754b93f6c0f1824e6bb322b64757 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Westk=C3=A4mper?= Date: Sun, 4 Jan 2009 14:26:52 +0000 Subject: [PATCH] improved Query interface by adding varargs for where and other methods --- querydsl-core/src/main/java/com/mysema/query/Query.java | 4 ++-- .../src/main/java/com/mysema/query/QueryBase.java | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) 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; }