bquery">T</a>&gt;&nbsp;having(<a href="../../../jakarta/persistence/criteria/Expression.html" title="interface in jakarta.persistence.criteria">Expression</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang">Boolean</a>&gt;&nbsp;restriction)</pre>
<div class="block">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