title: Date literals in Hibernate
body: <p>I wonder how to use date literals in Hibernate query language. I did as follows in my JPA project (as Eclipselink the provider) and it works.</p>
  
  <pre><code>SELECT m FROM Me m WHERE m.dob &lt;= {d '1984-10-06'}
  </code></pre>
  
  <p>But this does not work when I change Hibernate (V 3.6.7) as the provider for my JPA project.</p>