diff --git a/querydsl-apt/pom.xml b/querydsl-apt/pom.xml index 26ad13fb8..b42458381 100644 --- a/querydsl-apt/pom.xml +++ b/querydsl-apt/pom.xml @@ -5,7 +5,7 @@ com.mysema.querydsl querydsl-root - 0.6.1 + 0.6.1-SNAPSHOT com.mysema.querydsl diff --git a/querydsl-collections/pom.xml b/querydsl-collections/pom.xml index a4a010fcb..831941f05 100644 --- a/querydsl-collections/pom.xml +++ b/querydsl-collections/pom.xml @@ -5,7 +5,7 @@ com.mysema.querydsl querydsl-root - 0.6.1 + 0.6.1-SNAPSHOT com.mysema.querydsl diff --git a/querydsl-core/pom.xml b/querydsl-core/pom.xml index 97fe4ee67..a32efe226 100644 --- a/querydsl-core/pom.xml +++ b/querydsl-core/pom.xml @@ -5,7 +5,7 @@ com.mysema.querydsl querydsl-root - 0.6.1 + 0.6.1-SNAPSHOT com.mysema.querydsl diff --git a/querydsl-docs/readme.txt b/querydsl-docs/readme.txt index f22aa8b88..096210499 100644 --- a/querydsl-docs/readme.txt +++ b/querydsl-docs/readme.txt @@ -1 +1,3 @@ -* Document @QueryType \ No newline at end of file +* Document @QueryType + +* Document HibernateAnnotationProcessor \ No newline at end of file diff --git a/querydsl-hql/pom.xml b/querydsl-hql/pom.xml index 773f3a178..640def5c4 100644 --- a/querydsl-hql/pom.xml +++ b/querydsl-hql/pom.xml @@ -5,7 +5,7 @@ com.mysema.querydsl querydsl-root - 0.6.1 + 0.6.1-SNAPSHOT com.mysema.querydsl diff --git a/querydsl-hql/src/main/java/com/mysema/query/hql/HQLGrammar.java b/querydsl-hql/src/main/java/com/mysema/query/hql/HQLGrammar.java index 0216f13c3..f0eada9d1 100644 --- a/querydsl-hql/src/main/java/com/mysema/query/hql/HQLGrammar.java +++ b/querydsl-hql/src/main/java/com/mysema/query/hql/HQLGrammar.java @@ -5,12 +5,10 @@ */ package com.mysema.query.hql; -import com.mysema.query.types.expr.EBoolean; import com.mysema.query.types.expr.ECollection; import com.mysema.query.types.expr.EComparable; import com.mysema.query.types.expr.ENumber; import com.mysema.query.types.expr.Expr; -import com.mysema.query.types.operation.OBoolean; import com.mysema.query.types.operation.OComparable; import com.mysema.query.types.operation.ONumber; import com.mysema.query.types.operation.OSimple; @@ -37,9 +35,9 @@ public class HQLGrammar { return OComparable.create(col.getElementType(), Ops.QuantOps.AVG_IN_COL, (Expr)col); } - public static EBoolean exists(ECollection col) { - return OBoolean.create(Ops.EXISTS, (Expr)col); - } +// public static EBoolean exists(ECollection col) { +// return OBoolean.create(Ops.EXISTS, (Expr)col); +// } public static > EComparable max(ECollection left) { return OComparable.create(left.getElementType(), Ops.QuantOps.MAX_IN_COL, (Expr)left); @@ -49,9 +47,9 @@ public class HQLGrammar { return OComparable.create(left.getElementType(), Ops.QuantOps.MIN_IN_COL, (Expr)left); } - public static EBoolean notExists(ECollection col) { - return exists(col).not(); - } +// public static EBoolean notExists(ECollection col) { +// return exists(col).not(); +// } public static Expr some(ECollection col) { return any(col); diff --git a/querydsl-hql/src/test/java/com/mysema/query/hql/ParserTest.java b/querydsl-hql/src/test/java/com/mysema/query/hql/ParserTest.java index 69dfc86a4..723986be8 100644 --- a/querydsl-hql/src/test/java/com/mysema/query/hql/ParserTest.java +++ b/querydsl-hql/src/test/java/com/mysema/query/hql/ParserTest.java @@ -8,8 +8,6 @@ package com.mysema.query.hql; import static com.mysema.query.alias.Alias.$; import static com.mysema.query.alias.Alias.alias; import static com.mysema.query.hql.HQLGrammar.all; -import static com.mysema.query.hql.HQLGrammar.exists; -import static com.mysema.query.hql.HQLGrammar.notExists; import static com.mysema.query.hql.HQLGrammar.some; import static com.mysema.query.hql.HQLGrammar.sum; import static org.junit.Assert.assertEquals; @@ -372,7 +370,7 @@ public class ParserTest implements Constants { query().select(p).from(list, p).where(p.name.eq(some(list.names))).parse(); // parse( "from eg.Cat cat where exists elements(cat.kittens)" ); - query().from(cat).where(exists(cat.kittens)).parse(); + query().from(cat).where(cat.kittens.isNotEmpty()).parse(); // parse( "from eg.Player p where 3 > all elements(p.scores)" ); // q().from(player).where(all(player.scores).lt(3)).parse(); @@ -491,8 +489,7 @@ public class ParserTest implements Constants { // parse( "from eg.Cat as cat where not exists (\n" // + "from eg.Cat as mate where mate.mate = cat)" ); query().from(cat).where( -// notExists(HQLGrammar.from(mate).where(mate.mate.eq(cat)))) - notExists(sub().from(mate).where(mate.mate.eq(cat)).list(mate))) + sub().from(mate).where(mate.mate.eq(cat)).list(mate).notExists()) .parse(); // parse( "from eg.DomesticCat as cat where cat.name not in (\n" diff --git a/querydsl-jdoql/pom.xml b/querydsl-jdoql/pom.xml index 271e556ab..576f84417 100644 --- a/querydsl-jdoql/pom.xml +++ b/querydsl-jdoql/pom.xml @@ -5,7 +5,7 @@ com.mysema.querydsl querydsl-root - 0.6.1 + 0.6.1-SNAPSHOT com.mysema.querydsl diff --git a/querydsl-root/pom.xml b/querydsl-root/pom.xml index 9ad4c67e5..8f7cfc262 100644 --- a/querydsl-root/pom.xml +++ b/querydsl-root/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.mysema.querydsl querydsl-root - 0.6.1 + 0.6.1-SNAPSHOT Querydsl parent project for querydsl modules http://source.mysema.com/display/querydsl diff --git a/querydsl-sql/pom.xml b/querydsl-sql/pom.xml index 1ef077270..a18be3a66 100644 --- a/querydsl-sql/pom.xml +++ b/querydsl-sql/pom.xml @@ -5,7 +5,7 @@ com.mysema.querydsl querydsl-root - 0.6.1 + 0.6.1-SNAPSHOT com.mysema.querydsl