diff --git a/querydsl-hql/README.txt b/querydsl-hql/README.txt
index 19b4e7d3d..f7459635e 100644
--- a/querydsl-hql/README.txt
+++ b/querydsl-hql/README.txt
@@ -4,9 +4,4 @@ $ mvn clean generate-test-sources install -Dtest
* Or when creating Eclipse project files:
-$ mvn clean generate-test-sources eclipse:clean eclipse:eclipse -DdownloadSources=true install -Dtest
-
-* For tests, configure your JDBC connection in (see default.properties.sample for an example)
-
-/querydsl-hql/src/test/resources/com/mysema/query/hql/default.properties
-
+$ mvn clean generate-test-sources eclipse:clean eclipse:eclipse -DdownloadSources=true install -Dtest
\ No newline at end of file
diff --git a/querydsl-hql/pom.xml b/querydsl-hql/pom.xml
index 855c192fc..868be975b 100644
--- a/querydsl-hql/pom.xml
+++ b/querydsl-hql/pom.xml
@@ -39,11 +39,10 @@
-
- mysql
- mysql-connector-java
- 5.0.2
+ hsqldb
+ hsqldb
+ 1.8.0.7
test
diff --git a/querydsl-hql/src/main/java/com/mysema/query/grammar/HqlGrammar.java b/querydsl-hql/src/main/java/com/mysema/query/grammar/HqlGrammar.java
index 01f8b6e4d..c97abd60f 100644
--- a/querydsl-hql/src/main/java/com/mysema/query/grammar/HqlGrammar.java
+++ b/querydsl-hql/src/main/java/com/mysema/query/grammar/HqlGrammar.java
@@ -32,42 +32,42 @@ public class HqlGrammar extends Grammar{
public static Expr all(CollectionType col){
return new Quant.Simple(OpQuant.ALL, col);
}
- public static > Expr.Comparable all(CollectionType col){
+ public static > Expr.EComparable all(CollectionType col){
return new Quant.Comparable(OpQuant.ALL, col);
}
- public static Expr.Simple any(CollectionType col){
+ public static Expr.ESimple any(CollectionType col){
return new Quant.Simple(OpQuant.ANY, col);
}
- public static > Expr.Comparable any(CollectionType col){
+ public static > Expr.EComparable any(CollectionType col){
return new Quant.Comparable(OpQuant.ANY, col);
}
- public static > Expr.Comparable avg(Expr left){
+ public static > Expr.EComparable avg(Expr left){
return createNumber(OpNumberAgg.AVG, left);
}
- public static > Expr.Comparable avg(Path.Collection left){
+ public static > Expr.EComparable avg(Path.PCollection left){
return new Quant.Comparable(OpQuant.AVG_IN_COL, left);
}
- public static Expr.Comparable count(){
+ public static Expr.EComparable count(){
return new CountExpression(null);
}
- public static Expr.Comparable count(Expr> expr){
+ public static Expr.EComparable count(Expr> expr){
return new CountExpression(expr);
}
- public static Expr.Comparable current_date(){
+ public static Expr.EComparable current_date(){
return createComparable(OpHql.CURRENT_DATE);
}
- public static Expr.Comparable current_time(){
+ public static Expr.EComparable current_time(){
return createComparable(OpHql.CURRENT_TIME);
}
- public static Expr.Comparable current_timestamp(){
+ public static Expr.EComparable current_timestamp(){
return createComparable(OpHql.CURRENT_TIMESTAMP);
}
- public static Expr.Comparable day(Expr date){
+ public static Expr.EComparable day(Expr date){
return createComparable(OpHql.DAY, date);
}
@@ -75,87 +75,87 @@ public class HqlGrammar extends Grammar{
return new DistinctPath(left);
}
- public static Expr.Boolean exists(CollectionType col){
+ public static Expr.EBoolean exists(CollectionType col){
return new Quant.Boolean(OpQuant.EXISTS, col);
}
- public static SubQuery from(Expr.Entity select){
+ public static SubQuery from(Expr.EEntity select){
return new SubQuery(select).from(select);
}
- public static Expr.Comparable hour(Expr date){
+ public static Expr.EComparable hour(Expr date){
return createComparable(OpHql.HOUR, date);
}
- public static Path.ComponentCollection indices(Path.Collection> col){
- return new Path.ComponentCollection(Integer.class, new PathMetadata>(col, null, HqlPathType.LISTINDICES));
+ public static Path.PComponentCollection indices(Path.PCollection> col){
+ return new Path.PComponentCollection(Integer.class, new PathMetadata>(col, null, HqlPathType.LISTINDICES));
}
- public static Path.ComponentCollection indices(Path.Map col){
- return new Path.ComponentCollection(col.getKeyType(), new PathMetadata>(col, null, HqlPathType.LISTINDICES));
+ public static Path.PComponentCollection indices(Path.PMap col){
+ return new Path.PComponentCollection(col.getKeyType(), new PathMetadata>(col, null, HqlPathType.LISTINDICES));
}
- public static Expr.Boolean isempty(Path.ComponentCollection> collection) {
+ public static Expr.EBoolean isempty(Path.PComponentCollection> collection) {
return createBoolean(OpHql.ISEMPTY, collection);
}
- public static Expr.Boolean isempty(Path.EntityCollection> collection) {
+ public static Expr.EBoolean isempty(Path.PEntityCollection> collection) {
return createBoolean(OpHql.ISEMPTY, collection);
}
- public static Expr.Boolean isnotempty(Path.ComponentCollection> collection) {
+ public static Expr.EBoolean isnotempty(Path.PComponentCollection> collection) {
return createBoolean(OpHql.ISNOTEMPTY, collection);
}
- public static Expr.Boolean isnotempty(Path.EntityCollection> collection) {
+ public static Expr.EBoolean isnotempty(Path.PEntityCollection> collection) {
return createBoolean(OpHql.ISNOTEMPTY, collection);
}
- public static > Expr.Comparable max(Expr left){
+ public static > Expr.EComparable max(Expr left){
return createNumber(OpNumberAgg.MAX, left);
}
- public static > Expr.Comparable max(Path.Collection left){
+ public static > Expr.EComparable max(Path.PCollection left){
return new Quant.Comparable(OpQuant.MAX_IN_COL, left);
}
- public static Path.Entity maxelement(Path.EntityCollection col) {
- return new Path.Entity(col.getElementType(), new PathMetadata(col, null, HqlPathType.MINELEMENT));
+ public static Path.PEntity maxelement(Path.PEntityCollection col) {
+ return new Path.PEntity(col.getElementType(), new PathMetadata(col, null, HqlPathType.MINELEMENT));
}
- public static Path.Comparable maxindex(Path.ComponentCollection col) {
- return new Path.Comparable(Integer.class, new PathMetadata(col, null, HqlPathType.MAXINDEX));
+ public static Path.PComparable maxindex(Path.PComponentCollection col) {
+ return new Path.PComparable(Integer.class, new PathMetadata(col, null, HqlPathType.MAXINDEX));
}
- public static Path.Comparable maxindex(Path.EntityCollection col) {
- return new Path.Comparable(Integer.class, new PathMetadata(col, null, HqlPathType.MAXINDEX));
+ public static Path.PComparable maxindex(Path.PEntityCollection col) {
+ return new Path.PComparable(Integer.class, new PathMetadata(col, null, HqlPathType.MAXINDEX));
}
- public static > Expr.Comparable min(Expr left){
+ public static > Expr.EComparable min(Expr left){
return createNumber(OpNumberAgg.MIN, left);
}
- public static > Expr.Comparable min(Path.Collection left){
+ public static > Expr.EComparable min(Path.PCollection left){
return new Quant.Comparable(OpQuant.MIN_IN_COL, left);
}
- public static Path.Entity minelement(Path.EntityCollection col) {
- return new Path.Entity(col.getElementType(), new PathMetadata(col, null, HqlPathType.MINELEMENT));
+ public static Path.PEntity minelement(Path.PEntityCollection col) {
+ return new Path.PEntity(col.getElementType(), new PathMetadata(col, null, HqlPathType.MINELEMENT));
}
- public static Path.Comparable minindex(Path.ComponentCollection col) {
- return new Path.Comparable(Integer.class, new PathMetadata(col, null, HqlPathType.MININDEX));
+ public static Path.PComparable minindex(Path.PComponentCollection col) {
+ return new Path.PComparable(Integer.class, new PathMetadata(col, null, HqlPathType.MININDEX));
}
- public static Path.Comparable minindex(Path.EntityCollection col) {
- return new Path.Comparable(Integer.class, new PathMetadata(col, null, HqlPathType.MININDEX));
+ public static Path.PComparable minindex(Path.PEntityCollection col) {
+ return new Path.PComparable(Integer.class, new PathMetadata(col, null, HqlPathType.MININDEX));
}
- public static Expr.Comparable minute(Expr date){
+ public static Expr.EComparable minute(Expr date){
return createComparable(OpHql.MINUTE, date);
}
- public static Expr.Comparable month(Expr date){
+ public static Expr.EComparable month(Expr date){
return createComparable(OpHql.MONTH, date);
}
@@ -163,11 +163,11 @@ public class HqlGrammar extends Grammar{
return new Constructor(a,args);
}
- public static Expr.Boolean notExists(CollectionType col){
+ public static Expr.EBoolean notExists(CollectionType col){
return new Quant.Boolean(OpQuant.NOTEXISTS, col);
}
- public static Expr.Comparable second(Expr date){
+ public static Expr.EComparable second(Expr date){
return createComparable(OpHql.SECOND, date);
}
@@ -179,15 +179,15 @@ public class HqlGrammar extends Grammar{
return any(col);
}
- public static > Expr.Comparable sum(Expr left){
+ public static > Expr.EComparable sum(Expr left){
return createNumber(OpHql.SUM, left);
}
- public static Expr.Comparable sysdate(){
+ public static Expr.EComparable sysdate(){
return createComparable(OpHql.SYSDATE);
}
- public static Expr.Comparable year(Expr date){
+ public static Expr.EComparable year(Expr date){
return createComparable(OpHql.YEAR, date);
}
diff --git a/querydsl-hql/src/main/java/com/mysema/query/grammar/HqlOps.java b/querydsl-hql/src/main/java/com/mysema/query/grammar/HqlOps.java
index 7bd1af247..99f3d481b 100644
--- a/querydsl-hql/src/main/java/com/mysema/query/grammar/HqlOps.java
+++ b/querydsl-hql/src/main/java/com/mysema/query/grammar/HqlOps.java
@@ -5,9 +5,9 @@
*/
package com.mysema.query.grammar;
+import java.util.Arrays;
import java.util.Collections;
-import java.util.HashSet;
-import java.util.Set;
+import java.util.List;
import com.mysema.query.grammar.Ops.Op;
import com.mysema.query.grammar.types.PathMetadata;
@@ -22,17 +22,13 @@ import com.mysema.query.serialization.OperationPatterns;
*/
public class HqlOps extends OperationPatterns {
- public static final Set> wrapCollectionsForOp;
+ public static final List> wrapCollectionsForOp;
static{
- Set> ops = new HashSet>();
- ops.add(Ops.IN);
- ops.add(Ops.NOTIN);
- ops.add(OpQuant.ALL);
- ops.add(OpQuant.ANY);
- ops.add(OpQuant.EXISTS);
- ops.add(OpQuant.NOTEXISTS);
- wrapCollectionsForOp = Collections.unmodifiableSet(ops);
+ wrapCollectionsForOp = Collections.>unmodifiableList(Arrays.>asList(
+ Ops.IN, Ops.NOTIN,
+ OpQuant.ALL, OpQuant.ANY,
+ OpQuant.EXISTS, OpQuant.NOTEXISTS));
}
public HqlOps(){
diff --git a/querydsl-hql/src/main/java/com/mysema/query/grammar/HqlQueryBase.java b/querydsl-hql/src/main/java/com/mysema/query/grammar/HqlQueryBase.java
index b31463b30..a90cb24ac 100644
--- a/querydsl-hql/src/main/java/com/mysema/query/grammar/HqlQueryBase.java
+++ b/querydsl-hql/src/main/java/com/mysema/query/grammar/HqlQueryBase.java
@@ -18,7 +18,7 @@ import com.mysema.query.QueryBase;
import com.mysema.query.grammar.types.Expr;
import com.mysema.query.grammar.types.Path;
import com.mysema.query.grammar.types.PathMetadata;
-import com.mysema.query.grammar.types.Expr.Entity;
+import com.mysema.query.grammar.types.Expr.EEntity;
import com.mysema.query.hql.QueryModifiers;
/**
@@ -61,12 +61,12 @@ public abstract class HqlQueryBase> extends QueryBase<
countRowsString = null;
}
- protected Expr.Boolean createQBECondition(Path.Entity> entity,
+ protected Expr.EBoolean createQBECondition(Path.PEntity> entity,
Map map) {
CascadingBoolean expr = new CascadingBoolean();
for (Map.Entry entry : map.entrySet()){
PathMetadata md = PathMetadata.forProperty(entity, entry.getKey());
- Path.Simple