text: java persistence query language (jpql) объектке бағытталған платформаға байланысы жоқ мәліметтер базасының тілі. @entity public class publisher @id private integer id; private string name; private string address; "publisher") private list books; then simple query to retrieve the list of all authors, ordered alphabetically, would be: select from author order by a.firstname, a.lastname to retrieve the list of authors that have ever been published by xyz press: select distinct from author inner join a.books where 'xyz press' jpql supports named parameters, which begin with the colon (:). we could write function returning list of authors with the given last name as follows: import import import ... public list lastname) string querystring "select from author "where :lastname is null or :lastname"; query query return jpql is based on the hibernate query language (hql), an earlier non-standard query language included in the hibernate mapping library. hibernate and the hql were created before the jpa specification. as of hibernate jpql is subset of hql. mapping hibernate (java) java persistence api full query language syntax from the java ee tutorial jpa queries and jpql chapter of the objectdb manual type safe hibernate (hql) query engine torpedoquery