title: JPA date literal
body: <p>How represent a date in a JPA query, without using (typed) parameters?<br>
  If the date is really fixed (for example, 1 mar 1980), the code:</p>
  
  <pre><code>TypedQuery&lt;MyEntity&gt; q = em.createQuery("select myent from db.MyEntity myent where myent.theDate=?1", db.MyEntity.class).setParameter(1, d);
  </code></pre>
  
  <p>having set:</p>
  
  <blockquote>
    <p>Date d = new Date(80, Calendar.MARCH, 1);</p>
  </blockquote>
  
  <p>is quite verbose, isn't it? I would like to embed 1980/1/3 into my query. </p>
  
  <p>UPDATE:
  I modified the sample date to 1980/1/3, because 1980/1/1 as it was, was ambiguous.</p>