openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Yin <yg020...@gmail.com>
Subject Re: How to disable jpql Polymorphic Queries
Date Tue, 14 Jul 2009 06:08:02 GMT

Great, it works! Thanks a lot.

Pinaki Poddar wrote:
> 
> 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.
>> 
> 
> 

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

Mime
View raw message