Is there any library or framework to make JPA queries in a less verbose way such as:
User.query("age < 30")
instead of:
Query query = entityManager.createQuery("select u FROM User u WHERE age < 30");
return query.getResultList();
I suppose there is no standard way to do it with JPA. I've seen Hibernate Criteria API, 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.