0 Replies Latest reply on Dec 30, 2005 10:47 AM by Thorsten Kunz

    how to turn off query Polymorphism?

    Thorsten Kunz Novice

      From the EJB3 persistence specs:

      EJB QL queries are automatically polymorphic. The FROM clause of a query designates not only
      instances of the specific entity class(es) to which explicitly refers but of subclasses as well. The
      instances returned by a query include instances of the subclasses that satisfy the query criteria.

      Is it possible to turn this behavior off so that I would only get objects specific to the entity class that I query for without also getting all the matching subclassed objects?

      Thanks, Thorsten