© Josh Juneau 2018
Josh JuneauJava EE 8 Recipeshttps://doi.org/10.1007/978-1-4842-3594-2_10

10. The Query API and JPQL

Josh Juneau1 
(1)
Hinckley, Illinois, USA
 

The Java Persistence API (JPA) utilizes a query language for communicating with underlying data stores. Although Java EE uses entities rather than SQL for database access, it provides a query language so that developers can obtain the required information via the entities. The Java Persistence Query Language (JPQL) does just that because it provides a facility for querying and working with Java EE entity objects. Although it is very similar to SQL, it is an object-relational query language, so there are some minor differences of which developers should be aware. Using JPQL along with Java ...

Get Java EE 8 Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.