try:
  javax.persistence.Query q = em.createQuery(aJPQLString);
  q.setHint("openjpa.Subclasses", "false");



Jeff Yin wrote:
> 
> if i use a jpql query select a from A a
> all the instances of the subclasses of A will be returned, how can i
> disable this behavior? thanks.
> 


-----
Pinaki 
-- 
View this message in context: 
http://n2.nabble.com/How-to-disable-jpql-Polymorphic-Queries-tp3229800p3254349.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to