This article includes a list of references, related reading, or external links, but its sources remain unclear because it lacks inline citations. (June 2010) |
OS | Cross-platform |
---|---|
Website | eclipse-ee4j |
Influenced by | |
SQL, Hibernate |
The Jakarta Persistence Query Language (JPQL; formerly Java Persistence Query Language) is a platform-independent object-oriented query language[1]: 284, §12 defined as part of the Jakarta Persistence (JPA; formerly Java Persistence API) specification.
JPQL is used to make queries against entities stored in a relational database. It is heavily inspired by SQL, and its queries resemble SQL queries in syntax,[1]: 17, §1.3 but operate against JPA entity objects rather than directly with database tables.[1]: 26, §2.2.3
In addition to retrieving objects (SELECT
queries), JPQL supports set based UPDATE
and DELETE
queries.