EJB-447 : Implement JPA 2.0 criteria apis
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17262 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
558fcd635a
commit
8de99d279d
|
@ -66,6 +66,7 @@ public class CriteriaSubqueryImpl<T> extends ExpressionImpl<T> implements Subque
|
|||
for ( ParameterExpression param : queryStructure.getParameters() ) {
|
||||
registry.registerParameter( param );
|
||||
}
|
||||
// TODO : correlations. Can they contain parameters?
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
*/
|
||||
package org.hibernate.ejb.criteria;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Set;
|
||||
import java.util.HashSet;
|
||||
|
@ -83,6 +82,12 @@ public class QueryStructure<T> {
|
|||
ParameterContainer.Helper.possibleParameter(subquery, registry);
|
||||
}
|
||||
|
||||
// both group-by and having expressions can (though unlikely) contain parameters...
|
||||
ParameterContainer.Helper.possibleParameter(having, registry);
|
||||
for ( Expression<?> grouping : groupings ) {
|
||||
ParameterContainer.Helper.possibleParameter(grouping, registry);
|
||||
}
|
||||
|
||||
return parameters;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue