title: i am getting Caused by: java.sql.SQLSyntaxErrorException: ORA-00904: "FUNCTION": invalid identifier in hibernate JPA 3.6.7.final version
body: <p>String queryString="select model.vesselCode,model.vesselName,count(model) from Vesselarrivalnotice model where model.vesselCode is not null and "+ 
              "model.vesselName is not null and model.docStatus='Approved' and function('MONTH',model.actualArriveTime)="+month+" and function('YEAR',model.actualArriveTime)="+year+
              " and model.portdetailCode='"+port+"' and model.companydetailCode='"+company+"' "+
              " group by model.vesselCode,model.vesselName";</p>
  
  <pre><code>    Query query = getKpiEntityManager().createQuery(queryString);
  </code></pre>