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.
Two database tables have a foreign key relationship. They are mapped to two entities A and B by JPA, but …
java jpa join associations criteria-apiI have multiple entities that are queried via JPA2 Criteria Query. I am able to join two of these entities …
java mysql hibernate jpa-2.0 criteria-apiI have two tables named as table1 ,table2.Both the tables are having same no of fields.There is no …
jpa jpa-2.0 criteria-apii'm want to create a specification that matches a group id of a user object against a list of ids. …
jpa criteria-api spring-dataI have the following Specification that I use to query for any Contact entities that are tied to certain ManagedApplication …
java hibernate jpa spring-data-jpa criteria-apiI am trying to write a NOT IN constraint using JPA Criteria. I've tried something like this: builder.not(builder.…
java jpa jpa-2.0 criteria-apiI would like to do this but with the criteria API instead: select count(distinct e) from Event e, IN(…
java hibernate jpa criteria-apiIs there a heuristic/best practice/ruleset for a decision between the Criteria API and NamedQuery? My thoughts so far : …
java jpa criteria-api named-queryI would like to use JPA2 Criteria API with metamodel objects, which seems to be pretty easy: ... Root<JPAAlbum&…
java hibernate nullpointerexception jpa-2.0 criteria-apiSo my entity has: @Column(name="TS", nullable=false) private java.sql.Timestamp timestamp; My generated MetaModel has: public static …
java generics jpa-2.0 java-ee-6 criteria-api