Return-Path: X-Original-To: apmail-openjpa-users-archive@minotaur.apache.org Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E040C7AE7 for ; Tue, 18 Oct 2011 14:32:29 +0000 (UTC) Received: (qmail 53271 invoked by uid 500); 18 Oct 2011 14:32:29 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 53244 invoked by uid 500); 18 Oct 2011 14:32:29 -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 53236 invoked by uid 99); 18 Oct 2011 14:32:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Oct 2011 14:32: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; Tue, 18 Oct 2011 14:32:24 +0000 Received: from jim.nabble.com ([192.168.236.80]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RGAi2-00069n-Rp for users@openjpa.apache.org; Tue, 18 Oct 2011 07:32:02 -0700 Date: Tue, 18 Oct 2011 07:32:02 -0700 (PDT) From: Tobias Trelle To: users@openjpa.apache.org Message-ID: <1318948322850-6904837.post@n2.nabble.com> In-Reply-To: References: <1318855342739-6900378.post@n2.nabble.com> <1318924935204-6903642.post@n2.nabble.com> Subject: Re: Unnecessary Join on bidirectional OneToOne relation MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Rick Curtis wrote: > > Sorry I didn't ask this in my initial email.... what version of OpenJPA > are > you using, and how are you enhancing your Entities? > I'm using OpenJPA 2.0.1. The double join happens both with runtime and build time enhanced classes. The build time enhancement is done with an ant task: openjpa-enhance: [openjpac] INFO 16:29:51 - No targets were given. Running on all classes in your persistent classes list, or all metadata files in classpath directories if you have not listed your persistent classes. Use -help to display tool usage information. [openjpac] TRACE 16:29:51 - Enhancer running on type "com.xyz.framework.util.db.jpa.oto.A". [openjpac] TRACE 16:29:52 - Enhancer running on type "com.xyz.framework.util.db.jpa.oto.B". BUILD SUCCESSFUL Total time: 2 seconds Cheers, Tobias -- View this message in context: http://openjpa.208410.n2.nabble.com/Unnecessary-Join-on-bidirectional-OneToOne-relation-tp6900378p6904837.html Sent from the OpenJPA Users mailing list archive at Nabble.com.