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 using jpa and I have the following entity: @Entity @Table(name="favorites_folders") public class FavoritesFolder { private static final …
jpa collections criteria-apiI'm trying to change the following HQL to use JPA Criteria: select distinct d from Department d left join fetch …
jpa-2.0 criteria-apiI don't know how to perform a JPA criteria query that returns with a boolean output. The goal is to …
java hibernate jpa criteria-apiI'm using the Criteria API basically the first time. It's about abstracting queries for a generic builder: public TypedQuery<…
java sql jpa criteria-api metamodelI want to do something like this: select count(*) from (select ...) (As it would be in SQL), but in JPA. …
jpa jpa-2.0 jpql criteria-apiI want to get the maximum value of column relationId from table ElementRelationType I have written code but its giving …
jpa criteria-apiI have a query using a JOIN and ORDER BY and want to use it within my repository using the …
java mysql jpa spring-data-jpa criteria-apiMy Java application is using JPA for object persistence. The business domain is very simple (just three classes are persistent, …
java jpa jpa-2.0 jpql criteria-apiSpring-data, Oliver Gierke's excellent library, has something called a Specification (org.springframework.data.jpa.domain.Specification). With it you can …
spring subquery criteria-api spring-dataI am facing an issue for JPA criteria query. How can I add multiple where clause in my Criteria Query …
jpa where-clause predicate criteria-api conditional-statements