title: Django-like queries in Java/JPA
body: <p>Is there any library or framework to make JPA queries in a less verbose way such as:</p>
  
  <pre><code>User.query("age &lt; 30")
  </code></pre>
  
  <p>instead of:</p>
  
  <pre><code>Query query = entityManager.createQuery("select u FROM User u WHERE age &lt; 30");
  return query.getResultList();
  </code></pre>
  
  <p>I suppose there is no standard way to do it with JPA.  I've seen <a href="http://www.javalobby.org/articles/hibernatequery102/" rel="nofollow noreferrer">Hibernate Criteria API</a>, that is not as simple as Django and forces your application to be coupled to Hibernate. I'd like to know what do you think about it and other approaches.</p>