Abstract
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 EE entities allows developers to create versatile applications because JPQL is not database-specific and applications can be written once and deployed to run on top of a myriad of databases.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2018 Josh Juneau
About this chapter
Cite this chapter
Juneau, J. (2018). The Query API and JPQL. In: Java EE 8 Recipes. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3594-2_10
Download citation
DOI: https://doi.org/10.1007/978-1-4842-3594-2_10
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-3593-5
Online ISBN: 978-1-4842-3594-2
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)