2.10. JPA Query

jpa query

The jakarta.persistence.Query interface is the mechanism for issuing queries in JPA. The primary query language used is the Java Persistence Query Language, or JPQL. JPQL is syntactically very similar to SQL, but is object-oriented rather than table-oriented.

The API for executing JPQL queries will be discussed in JPQL API, and a full language reference will be covered in JPQL Language Reference.