having(restriction) - JPA Subquery's method
Method javax.persistence.criteria.Subquery
Subquery<T> having(
Expression<Boolean> restriction
)
Specify a restriction over the groups of the subquery. Replaces the previous having restriction(s), if any. This method only overrides the return type of the corresponding
AbstractQuery
method. - Parameters:
-
restriction
- a simple or compound boolean expression
- Returns:
- the modified subquery
- Since:
- JPA 2.0