title: Java query for postgresql's interval method not working
body: <p>I'm writing postgresql query. When I run the query </p>
  
  <p><code>"reservatio0_.DATE_ &gt;(NOW() - '60 MINUTES'::INTERVAL)</code>" on pgAdmin it works fine, but in java I get </p>
  
  <blockquote>
    <p>QuerySyntaxException, unexpected token: : bla bla</p>
  </blockquote>
  
  <p>if I run this code</p>
  
  <pre><code>List&lt;Reservation&gt; list = em.createQuery( 
                                      "select r " +
                                      "from Reservation r " +
                                      "where r.group.id=:groupName " +
                                   "  and  r.date &gt;(NOW() - '60 MINUTES'::INTERVAL) " +
                                      "order by r.date asc")
                                      .setParameter("groupName", groupName)
                                      .setParameter("number", number)
                                      .setMaxResults(1)
                                      .getResultList();
  </code></pre>