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
longprimitives to represent the values as milliseconds. Do not use thejava.util.Dateandjava.sql.Timeobjects in EJB QL comparisons.- Because support for
BigDecimalandBigIntegertypes 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.