The new Criteria API is one of the most significant additions to JPA in the JPA 2.0 release. This API enables the writing of both static and dynamic object-based queries, and provides all of the functionality of the Java Persistence query language and more.
This session will provide an overview both of the Criteria API as well as the new JPA Metamodel API, which provides the foundation for the type-safety of criteria queries.
Topics to be covered include the following:
Overview of the core query construction interfaces
How to construct, deconstruct, or reconstruct a criteria query
The JPA metamodel API and its role in defining type-safe queries
New APIs for type-safe query execution
Relationship to the Java Persistence query language