title: Error on use having with count in querydsl
body: <p>I trying use querydsl query with having clause with count aggregation but i have the error</p>
  
  <blockquote>
    <p>Caused by: org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: having near line 4, column 1 [select count(distinct logData.ipAddress)from com.ef.domain.LogData logData where logData.date between ?1 and ?1 having count(logData) >= ?2]</p>
  </blockquote>
  
  <p>By the following code</p>
  
  <pre><code>return query.select(Projections.constructor(LogData.class, data.count(), data.ipAddress)).from(data).where(data.date.between(args.getStartDate(), args.getFinalDate()))
              .groupBy(data.ipAddress).having(data.count().goe(args.getThreshold())).fetchResults().getResults();
  </code></pre>
  
  <p>What´s wrong?</p>