EJB Query Language

The biggest problem with finder methods in EJB 1.1 was that every vendor offered a unique way to implement them. The standard support for relationships between entity beans in EJB 2.0 CMP and the introduction of the abstract persistence schema have made it possible to change this. Finder methods are now defined using a syntax derived from SQL92 known as the EJB Query Language (EJB QL). It’s up to the container to translate this standard format into the target language of the underlying data store. If you’re comfortable with SQL, writing queries for finder methods will come naturally to you. More importantly, your finder method queries will be supported by any EJB 2.0 container. In addition, support has been added for select ...

Get Special Edition Using Enterprise JavaBeans™ 2.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.