EJB QL Restrictions

EJB QL has a few restrictions:

  • Comments are not allowed.

  • Date and time values are in milliseconds and use a Java long.Adate or time literal should be an integer literal. To generate a millisecond value, you may use the java.util.Calendar class.

  • Currently, container-managed persistence does not support inheritance. For this reason, two entity beans of different types cannot be compared.

Get J2EE™ Tutorial, The 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.