Download PDF Home History |  | API Search Feedback FAQ

> ## EJB QL Restrictions

> EJB QL has a few restrictions:

> - Comments are not allowed.
> - To compare date and time values in an EJB QL query, use `long` primitives to represent the values as milliseconds. Do not use the `java.util.Date` and `java.sql.Time` objects in EJB QL comparisons.
> - Because support for `BigDecimal` and `BigInteger` types is optional for EJB 2.1 containers, applications that use these types in EJB QL queries may not be portable.
> - Currently, container-managed persistence does not support inheritance. For this reason, two entity beans of different types cannot be compared.

Download PDF Home History |  | API Search Feedback FAQ

All of the material in The J2EE(TM) 1.4 Tutorial is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.