title: Error using CURRENT_TIMESTAMP() into a query
body: <p>I want to compare two date in jpql query using the current date function</p>
  
  <p>I got an error</p>
  
  <blockquote>
    <p>Syntax error parsing [SELECT d FROM Dossier d WHERE d.depid=1 AND d.typeDossier = :tpd AND d.dateCreation &lt; CURRENT_TIMESTAMP() + 5].<br>
    [105, 107] The left expression is not an arithmetic expression</p>
  </blockquote>
  
  <p>This is my query: </p>
  
  <pre><code>public List&lt;Dossier&gt; getDossierFindAllParDepartementDBTECHandUrgen() {
      return (List&lt;Dossier&gt;) em.createQuery("SELECT d FROM Dossier d WHERE d.depid=1 AND d.typeDossier = :tpd AND " +
          "d.dateCreation &lt; CURRENT_TIMESTAMP() + 5",
                                            Dossier.class).setParameter("tpd", "Urgent").getResultList();
  }
  </code></pre>