oolean</a>&gt;&nbsp;restriction)</span></div>
<div class="block">Specify a restriction over the groups of the query.
 Replaces the previous having restriction(s), if any.
 This method only overrides the return type of the 
 corresponding <code>AbstractQuery</code> method.</div>
<dl class="notes">
<dt>Specified by:</dt>
<dd><code><a href="AbstractQuery.html#having(jakarta.persistence.criteria.Expression)">having</a></code>&nbsp;in interface&nbsp;<code><a href="AbstractQuery.html" title="interface in jakarta.