openjpa-users mailing list archives

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

Thanks a lot for your help though it doesn't work.

rpalache wrote:
> Hi Jeff,
> Yes you are correct. I developed a simple test case for this and I see
> that the SubclassFetchMode is not helping resolve the issue.
> I did more debugging in the openJPA code and see that currently in case of
> subclasses the queries for subclasses will be executed and I see no way to
> stop them. ( just my personal observation, so please do not completely
> count on this statement.)
> There is a way to restrict the fields that you want to pull from these
> subqueries though.
> We can do that using fetchgroup technique.
> Can you please give more details on the reason for your initial question ?
> Sorry my previous suggestion was not helpful.
> I recommended that with what ever I read in the documentation.
> "Specifies the default subclass fetch mode to use. Defaults to join unless
> the query is by-oid. Possible values are:
>     * none: Only select base class data."
> Regards,
> Ravi.

View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message