About reference
JPA Criteria API Queries
Explains how to use the JPA Criteria API (CriteriaBuilder, CriteriaQuery, etc.) to build JPQL like queries.... expressions, predicates, orderings. See JavaDoc Reference Page... cb = em. getCriteriaBuilder ... for the creation of CriteriaQuery objects. See JavaDoc Reference Page... ( ) ; CriteriaQuery ... that is specific to top-level queries. See JavaDoc Reference Page... <Country> q = cb. createQuery ...
JPA Metamodel API
Explains how to use the JPA Metamodel API to retrieve details on the types and attributes of the persistent object model.... entities in the persistence unit. See JavaDoc Reference Page... . It can be obtained either by the ... manager factory for the persistence unit. See JavaDoc Reference Page... 's getMetamodel getMetamodel() ... to the metamodel of the persistence unit. See JavaDoc Reference Page... method or by the EntityManager ...
Storing JPA Entity Objects
Explains how to use JPA to store (persist) entity objects in the database.... Make an instance managed and persistent. See JavaDoc Reference Page... method or implicitly as a result of a cascade ... resource-level EntityTransaction object. See JavaDoc Reference Page... ( ) . begin begin() ...
SELECT clause (JPQL / Criteria API)
Explains how to use the SELECT clause and projections in a JPA/JPQL query.... to interact with the persistence context. See JavaDoc Reference Page... em : TypedQuery ... to control the execution of typed queries. See JavaDoc Reference Page... <Country> query = em. createQuery ... Java Persistence query language statement. See JavaDoc Reference Page... ( "SELECT c FROM Country c" , Country. ...
Index Definition
Describes how to define indexes in JPA entity classes and explains how indexes are used in JPQL queries.... Annotation for a database index. See JavaDoc Reference Page... and @Unique javax.jdo.annotations.Unique ... for a database unique constraint. See JavaDoc Reference Page... annotations to define indexes: import ...
JPA Named Queries
Explains how to define and how to run JPA named queries.... in the Java Persistence query language. See JavaDoc Reference Page... annotation defines a query whose name is ... in the Java Persistence query language. See JavaDoc Reference Page... ( name NamedQuery.name annotation ...
Numbers in JPQL and Criteria Queries
Shows how numbers, arithmetic expressions and numeric functions and operators (MOD, ABS) can be used in JPQL queries.... expressions, predicates, orderings. See JavaDoc Reference Page... interface provides factory methods for building these ... interface Type for query expressions. See JavaDoc Reference Page... <Integer> path = country. get ...
Setting and Tuning of JPA Queries
Explains various JPA query settings - result range, flush and lock.... Interface used to control query execution. See JavaDoc Reference Page... and TypedQuery ... to control the execution of typed queries. See JavaDoc Reference Page... interfaces define various setting and tuning ... return the query results as a typed List. See JavaDoc Reference Page... or getSingleResult getSingleResult() ...