Return-Path: Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: (qmail 15837 invoked from network); 14 Jul 2009 06:09:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Jul 2009 06:09:10 -0000 Received: (qmail 24991 invoked by uid 500); 14 Jul 2009 06:09:19 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 24914 invoked by uid 500); 14 Jul 2009 06:09:19 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 24896 invoked by uid 99); 14 Jul 2009 06:09:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jul 2009 06:09:19 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists+1214986160035-208411@n2.nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jul 2009 06:09:10 +0000 Received: from tervel.nabble.com ([192.168.236.150]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MQbC5-0005xB-En for users@openjpa.apache.org; Mon, 13 Jul 2009 23:08:49 -0700 Date: Mon, 13 Jul 2009 23:08:49 -0700 (PDT) From: Jeff Yin To: users@openjpa.apache.org Message-ID: <1247551729450-3254375.post@n2.nabble.com> In-Reply-To: <1247526876863-3253569.post@n2.nabble.com> References: <1247120367768-3229800.post@n2.nabble.com> <1247248054876-3237076.post@n2.nabble.com> <1247389538686-3245246.post@n2.nabble.com> <1247526876863-3253569.post@n2.nabble.com> Subject: Re: How to disable jpql Polymorphic Queries MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: yg020840@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org 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. > http://openjpa.apache.org/builds/latest/docs/javadoc/org/apache/openjpa/jdbc/conf/JDBCConfiguration.html#getSubclassFetchMode() > "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: http://n2.nabble.com/How-to-disable-jpql-Polymorphic-Queries-tp3229800p3254375.html Sent from the OpenJPA Users mailing list archive at Nabble.com.