The EJB query language (EJB QL) syntax is based on SQL and allows searches on the persistent attributes of an enterprise bean and associated bean attributes. The query language is independent of the bean's mapping to a relational data store and it is portable. The query language is compiled into SQL at deployment time based on the schema mapping for the bean.
For details on EJB QL, go to the WebSphere® Application Server Information Center and search for the keywords "EJB QL".