mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-13 21:01:01 +08:00
updated version to 0.6.1-SNAPSHOT
This commit is contained in:
parent
523b28b604
commit
cbe86cee10
@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<groupId>com.mysema.querydsl</groupId>
|
||||
<artifactId>querydsl-root</artifactId>
|
||||
<version>0.6.1</version>
|
||||
<version>0.6.1-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<groupId>com.mysema.querydsl</groupId>
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<groupId>com.mysema.querydsl</groupId>
|
||||
<artifactId>querydsl-root</artifactId>
|
||||
<version>0.6.1</version>
|
||||
<version>0.6.1-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<groupId>com.mysema.querydsl</groupId>
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<groupId>com.mysema.querydsl</groupId>
|
||||
<artifactId>querydsl-root</artifactId>
|
||||
<version>0.6.1</version>
|
||||
<version>0.6.1-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<groupId>com.mysema.querydsl</groupId>
|
||||
|
||||
@ -1 +1,3 @@
|
||||
* Document @QueryType
|
||||
* Document @QueryType
|
||||
|
||||
* Document HibernateAnnotationProcessor
|
||||
@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<groupId>com.mysema.querydsl</groupId>
|
||||
<artifactId>querydsl-root</artifactId>
|
||||
<version>0.6.1</version>
|
||||
<version>0.6.1-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<groupId>com.mysema.querydsl</groupId>
|
||||
|
||||
@ -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 <A extends Comparable<? super A>> EComparable<A> max(ECollection<A> 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 <D> Expr<D> some(ECollection<D> col) {
|
||||
return any(col);
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<groupId>com.mysema.querydsl</groupId>
|
||||
<artifactId>querydsl-root</artifactId>
|
||||
<version>0.6.1</version>
|
||||
<version>0.6.1-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<groupId>com.mysema.querydsl</groupId>
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.mysema.querydsl</groupId>
|
||||
<artifactId>querydsl-root</artifactId>
|
||||
<version>0.6.1</version>
|
||||
<version>0.6.1-SNAPSHOT</version>
|
||||
<name>Querydsl</name>
|
||||
<description>parent project for querydsl modules</description>
|
||||
<url>http://source.mysema.com/display/querydsl</url>
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<groupId>com.mysema.querydsl</groupId>
|
||||
<artifactId>querydsl-root</artifactId>
|
||||
<version>0.6.1</version>
|
||||
<version>0.6.1-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<groupId>com.mysema.querydsl</groupId>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user