I'll run the experiment in a few minutes, but that wouldn't be proper in
general. I have more than one class which is derived from the parent and don't
know which class will be produced by the query a priori.
On Nov 13, 2010, at 1:00 PM, Pinaki Poddar [via OpenJPA] wrote:
> > Query query = em.createNativeQuery("...", A.class);
> > My expectation is that this query should return an instance of B
>
> What happens if you do
> Query query = em.createNativeQuery("...", B.class);
> Pinaki
>
>
> View message @
> http://openjpa.208410.n2.nabble.com/Do-native-queries-respect-inheritance-tp5731353p5735853.html
>
> To start a new topic under OpenJPA Users, email
> [email protected]
> To unsubscribe from OpenJPA Users, click here.
>
--
View this message in context:
http://openjpa.208410.n2.nabble.com/Do-native-queries-respect-inheritance-tp5731353p5735881.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.