From dev-return-19462-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Mon Aug 15 20:20:30 2011 Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7456E7BC1 for ; Mon, 15 Aug 2011 20:20:30 +0000 (UTC) Received: (qmail 63294 invoked by uid 500); 15 Aug 2011 20:20:30 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 63231 invoked by uid 500); 15 Aug 2011 20:20:29 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 63223 invoked by uid 99); 15 Aug 2011 20:20:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Aug 2011 20:20:29 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Aug 2011 20:20:24 +0000 Received: from jim.nabble.com ([192.168.236.80]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Qt3dj-0003dA-Bz for dev@openjpa.apache.org; Mon, 15 Aug 2011 13:20:03 -0700 Date: Mon, 15 Aug 2011 13:20:03 -0700 (PDT) From: Pinaki Poddar To: dev@openjpa.apache.org Message-ID: <1313439603340-6689014.post@n2.nabble.com> In-Reply-To: <90233208.39299.1313436927084.JavaMail.tomcat@hel.zones.apache.org> References: <667336011.25587.1313013927123.JavaMail.tomcat@hel.zones.apache.org> <90233208.39299.1313436927084.JavaMail.tomcat@hel.zones.apache.org> Subject: Re: [jira] [Commented] (OPENJPA-2039) FKs for EAGER fields that are not in the current fetchplan aren't selected MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Rick, Thank you for considering my suggestion. Putting it in JDBCFetchConfiguration is pretty much boilerplate. 1. Declare a boolean ignoreFKinDFG or something in JDBCFetchConfigurationImpl$JDBCConfigurationState 2. Copy the field value in copy(FetchConfiguration fc) 3. If you want this boolean be also supported via query hints, then follow similar pattern used in other variables 4. Facade the accessor/mutator in JDBCFetchPlan If an option is not JDBC-specific, then the same tactics applies to FetchConfigurationImpl$ConfigurationState If you are wondering why ConfigurationState is separate from FetchConfiguration, the answer is to guard against concurrent usage. ----- Pinaki Poddar Chair, Apache OpenJPA Project -- View this message in context: http://openjpa.208410.n2.nabble.com/jira-Created-OPENJPA-2039-FKs-for-EAGER-fields-that-are-not-in-the-current-fetchplan-aren-t-selected-tp6674335p6689014.html Sent from the OpenJPA Developers mailing list archive at Nabble.com.