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'm stuck with a simple problem; struggling how to invoke order by on a joined entity. Essentially I am trying …
java jpa sql-order-by criteria-apiThis is the further question to this: How to use JPA Criteria API in JOIN CriteriaBuilder criteriaBuilder = em.getCriteriaBuilder(); CriteriaQuery&…
java jpa join criteria-apiI am trying to write a distinct criteria query, using: CriteriaBuilder builder = em.getCriteriaBuilder(); CriteriaQuery<RuleVar> query = builder.…
java jpa criteria-apiIs there a possibility to use a parameter list in Criteria API .in expression? I have something like this: List&…
java jpa expression criteria-apiI am trying to test a JPA repository. Here is my client/test code: @Test public void testFindBoitesByMultiFieldWithIdentifiantSet() { BoiteDataOnDemand dod = …
hibernate jpa jpa-2.0 criteria-apiUsing JPA 2.0. It seems that by default (no explicit fetch), @OneToOne(fetch = FetchType.EAGER) fields are fetched in 1 + N queries, …
java jpa jpql criteria-apiI'm trying to create a criteria to retrieve some objects from 3 tables (Associate, Update and Detail). A Detail has reference …
java jpa-2.0 jpql criteria-apiI want make a query where I join 2 tables, using the CriteriaBuilder. In MySQL the query I'm trying to make …
jpa jpa-2.0 criteria-apiTL;DR: How do you replicate JPQL Join-Fetch operations using specifications in Spring Data JPA? I am trying to build …
java spring jpa spring-data-jpa criteria-apiI want to use criteria to make the following query. I have an Entity with EmbeddedId defined: @Entity @Table(name="…
jpa jpa-2.0 criteria-api composite-id