The Jakarta Persistence API provides two methods for querying entities—the Jakarta Persistence query language (Jakarta Persistence QL) and the Criteria API.
The Jakarta Persistence QL is the string-based standard query language of Jakarta Persistence. It is a portable query language designed to combine the syntax and simple query semantics of SQL with the expressiveness of an object-oriented ...