Enterprise Java Development@TOPIC@
Provide breadth coverage of JPA Queries to demonstrate options available for accessing information from a relational database using an EntityManager.
At the completion of this topic, the student shall
have an understanding of:
Query Construction
Value, ResultClass, and Entity Queries
Typed Queries
Dynamic and Named Queries
Single, Multiple, and Stream Results
Parameters
Paging
Locking
Supported Query Languages
JPA Query Language
Native SQL
Java-based Criteria API
be able to:
Form a query using...
JPA-QL
Native SQL
Criteria API
Use a query to locate specific properties for one or more entities that match a criteria
Use a query to locate specific entities that match a criteria
Use paging within queries to handle large data sets
Use pessimistic locking to better support database consistency