code: public static boolean hasHaving(JPQLExpression jpqlExpression)
      {
          if (isSelectStatement(jpqlExpression))
          {
              return ((SelectStatement) jpqlExpression.getQueryStatement()).hasHavingClause();
          }
          return false;
      }
docs: Checks for having.
  
  @param jpqlExpression
  the jpql expression
  @return true, if successful