About Criteria API

1-10 of 200Refresh
Manual
445

JPA Criteria API Queries

The JPA Criteria API provides an alternative way for defining JPA queries, which is mainly useful for building dynamic queries whose exact structure is only known at runtime. JPA Criteria API vs JPQL ... the criteria API is that errors can be detected earlier, during compilation rather than at runtime
Manual
426

SELECT clause (JPQL / Criteria API) [2013-03-11]

the SELECT clause content (overriding previously set SELECT content if any). Every valid criteria API expression can be used as selection, because all the criteria API expressions are represented by a sub ... .capital.name FROM Country c can be defined using the criteria API as follows: CriteriaQuery
Manual
426

SELECT clause (JPQL / Criteria API)

The criteria query API provides several ways for setting the SELECT clause. Single Selection Setting ... API expression can be used as selection, because all the criteria API expressions are represented by ... .name, c.capital.name FROM Country c can be defined using the criteria API as follows
Manual
414

Paths and Types in JPQL and Criteria API [2014-05-31]

as one group, and COUNT calculates its size). Criteria Query Paths and Types Paths and navigations are represented in the JPA Criteria API by the Path interface and by its subinterfaces (From, Root ... type method. For example, the following criteria expression checks if the type of a specified entity e
Manual
414

WHERE clause (JPQL / Criteria API)

query: SELECT c FROM Country c WHERE c.population > :p can be built by using the criteria query API ... in other JPQL query clauses but they are especially dominant in the WHERE clause. WHERE in Criteria ... FROM Country WHERE c.population > :p AND c.area < :a can be built as a criteria query as follows
Manual
414

Paths and Types in JPQL and Criteria API

as one group, and COUNT calculates its size). Criteria Query Paths and Types Paths and navigations are represented in the JPA Criteria API by the Path interface and by its subinterfaces (From, Root ... type method. For example, the following criteria expression checks if the type of a specified entity e
Manual
413

FROM clause (JPQL / Criteria API)

, abs, Abs and aBs are all invalid variable names. FROM and JOIN in Criteria Queries FROM query identification variables are represented in criteria queries by sub interfaces of From: Range variables ... (and its sub interfaces). Criteria Query Roots The CriteriaQuery's from method serves as a factory of Root
Manual
412

ORDER BY clause (JPQL / Criteria API)

Country c ORDER BY c.currency, c.population DESC can be built using the criteria query API as ... the result order would be undefined. ORDER BY in Criteria Queries The CriteriaQuery interface ... "))); Unlike other methods for setting criteria query clauses - the orderBy method takes a variable number
Manual
407

Comparison in JPQL and Criteria API [2017-09-12]

> :max Criteria Query Comparison JPQL comparison operators (which are described above) are available also as JPA criteria query expressions. The CriteriaBuilder interface provides factory methods ... of every one of these methods is a criteria expression. The second argument (and the third argument in between
Manual
407

Comparison in JPQL and Criteria API

> :max Criteria Query Comparison JPQL comparison operators (which are described above) are available also as JPA criteria query expressions. The CriteriaBuilder interface provides factory methods ... of every one of these methods is a criteria expression. The second argument (and the third argument in between