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

    how to turn off query Polymorphism?

    sunfire

      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