This tag is for questions related to the Java Persistence Criteria API (from JPA 2.0) which is used to define queries through the construction of object-based query definition objects, rather than use of the string-based approach of the Java Persistence query language.
I've encountered a rather odd case in Java EE 6 where using the JPA EntityManager's find method along with an entity's …
hibernate jakarta-ee jpa-2.0 java-ee-6 criteria-apiI was wondering if it's possible to create such query like : em.createQuery( "SELECT NEW EmpMenu(p.name, p.department.…
java hibernate jpa-2.0 jpql criteria-apiI have a particularly nasty JMock checking() block for a JPA query that I want to migrate to Mockito: Mockery …
java jpa mockito criteria-api jmockI am trying to fetch all users for a folder where the user was created after a certain date. the …
jpa-2.0 criteria-apiIs there any way in OpenJPA to get hold of a nested object property via CriteriaBuilder? Here's a small case. @…
java criteria-api openjpaI have a class Customer and CustomerDependant entities. Customer has many to many bi-directional relationship with its dependents. I need …
java jpa-2.0 criteria-apiI'm trying to create a query with the Criteria API from JPA 2.0, but I can't make it work. The problem …
java jpa jpa-2.0 criteria-api metamodelI have an issue with grails criteria builder, I want to do a projection on a column that is on …
grails alias projection criteria-apiIs there a way to write with JPA 2 CriteriaBuilder the equivalent of the following query? select * from season s1 where …
jpa jpa-2.0 criteria-api correlated-subqueryThe following criteria query calculates the average of rating of different groups of products. CriteriaBuilder criteriaBuilder=entityManager.getCriteriaBuilder(); CriteriaQuery<…
hibernate jpa criteria criteria-api having