About page
Setting and Tuning of JPA Queries
Explains various JPA query settings - result range, flush and lock.... used to control query execution. See JavaDoc Reference Page... and TypedQuery javax.persistence.TypedQuery ... the execution of typed queries. See JavaDoc Reference Page... interfaces define various setting and tuning methods that may ...
JPA Criteria API Queries
Explains how to use the JPA Criteria API (CriteriaBuilder, CriteriaQuery, etc.) to build JPQL like queries.... structure is only known at runtime. This page covers the following topics: JPA Criteria API vs JPQL ... predicates, orderings. See JavaDoc Reference Page... cb = em. getCriteriaBuilder getCriteriaBuilder() ...
JPA Metamodel API
Explains how to use the JPA Metamodel API to retrieve details on the types and attributes of the persistent object model.... provides for general Java types. This page covers the following topics: The Metamodel Interface ... entities in the persistence unit. See JavaDoc Reference Page... . It can be obtained either by the EntityManagerFactory ...
Storing JPA Entity Objects
Explains how to use JPA to store (persist) entity objects in the database.... instance managed and persistent. See JavaDoc Reference Page... method or implicitly as a result of a cascade operation. This page covers the following topics: Explicit Persist ...
SELECT clause (JPQL / Criteria API)
Explains how to use the SELECT clause and projections in a JPA/JPQL query.... with the persistence context. See JavaDoc Reference Page... em : TypedQuery javax.persistence.TypedQuery ... the execution of typed queries. See JavaDoc Reference Page... <Country> query = em. createQuery ...
Index Definition
Describes how to define indexes in JPA entity classes and explains how indexes are used in JPQL queries.... define with indexes should be done carefully. This page covers the following topics: Single Field Index ... Annotation for a database index. See JavaDoc Reference Page... and @Unique javax.jdo.annotations.Unique JDO ...
Numbers in JPQL and Criteria Queries
Shows how numbers, arithmetic expressions and numeric functions and operators (MOD, ABS) can be used in JPQL queries.... into a more complex expression. This page covers the following topics: Arithmetic Operators ... predicates, orderings. See JavaDoc Reference Page... interface provides factory methods for building these ... Type for query expressions. See JavaDoc Reference Page... <Integer> path = country. get get(attributeName) ...
Strings in JPQL and Criteria Queries
Explains string expressions in JPQL queries, including LIKE, LOCATE, LOWER, UPPER, TRIM, CONCAT and SUBSTRING.... JPQL string manipulation functions. This page covers the following topics: LIKE - String Pattern ... predicates, orderings. See JavaDoc Reference Page... interface provides factory methods for building these ... Type for query expressions. See JavaDoc Reference Page... <String> path = country. get get(attributeName) ...
JPA Query Expressions (JPQL / Criteria)
Describes JPA query (JPQL / Criteria API) expressions (literals, operators and functions).... an expression for a literal. See JavaDoc Reference Page... , nullLiteral nullLiteral(resultClass) ... null literal with the given type. See JavaDoc Reference Page... , currentDate currentDate() CriteriaBuilder's ...