having(restrictions) - JPA Subquery's method

Specify restrictions over the groups of the subquery according the conjunction of the specified restriction predicates. Replaces the previously added having restriction(s), if any. If no restrictions are specified, any previously added restrictions are simply removed. This method only overrides the return type of the corresponding AbstractQuery method.
restrictions - zero or more restriction predicates
the modified subquery
JPA 2.0