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 8d884c519..a16b839a7 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 @@ -6,6 +6,7 @@ package com.mysema.query.grammar; import java.util.Arrays; +import java.util.Collection; import java.util.Collections; import java.util.List; @@ -113,27 +114,27 @@ public class HqlOps extends OperationPatterns { * The Interface OpHql. */ public interface OpHql{ - Op ISEMPTY = new Op(); - Op ISNOTEMPTY = new Op(); - Op SUM = new Op(); + Op ISEMPTY = new Op(Collection.class); + Op ISNOTEMPTY = new Op(Collection.class); + Op SUM = new Op(Number.class); } /** * The Interface OpQuant. */ public interface OpQuant{ - Op AVG_IN_COL = new Op(); - Op MAX_IN_COL = new Op(); - Op MIN_IN_COL = new Op(); + Op AVG_IN_COL = new Op(Collection.class); + Op MAX_IN_COL = new Op(Collection.class); + Op MIN_IN_COL = new Op(Collection.class); // some / any = true for any // all = true for all // exists = true is subselect matches // not exists = true if subselect doesn't match - Op ANY = new Op(); - Op ALL = new Op(); - Op EXISTS = new Op(); - Op NOTEXISTS = new Op(); + Op ANY = new Op(Object.class); + Op ALL = new Op(Object.class); + Op EXISTS = new Op(Object.class); + Op NOTEXISTS = new Op(Object.class); } /**