Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 30542 invoked from network); 15 Feb 2007 15:40:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Feb 2007 15:40:34 -0000 Received: (qmail 5403 invoked by uid 500); 15 Feb 2007 15:40:42 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 5381 invoked by uid 500); 15 Feb 2007 15:40:41 -0000 Mailing-List: contact open-jpa-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: open-jpa-dev@incubator.apache.org Delivered-To: mailing list open-jpa-dev@incubator.apache.org Received: (qmail 5372 invoked by uid 99); 15 Feb 2007 15:40:41 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Feb 2007 07:40:41 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of awhite@bea.com designates 66.248.192.22 as permitted sender) Received: from [66.248.192.22] (HELO usremg02.bea.com) (66.248.192.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Feb 2007 07:40:31 -0800 Received: from usremr02.bea.com (mailrelay.bea.com [10.160.29.92]) by usremg02.bea.com (Switch-3.2.2/Switch-3.2.2) with ESMTP id l1FFe9jY010637 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Thu, 15 Feb 2007 07:40:09 -0800 Received: from [10.0.1.9] ([10.43.242.236]) by usremr02.bea.com (Switch-3.2.2/Switch-3.2.2) with ESMTP id l1FFe70t006723 for ; Thu, 15 Feb 2007 07:40:08 -0800 Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <864cafc0702141705v77d9e754ia45afd661d048593@mail.gmail.com> References: <864cafc0702141526j4a168f2la05d710b9ad1196b@mail.gmail.com> <7D856CDFE035FF45A0420ACBD71BDD630338179C@repbex02.amer.bea.com> <864cafc0702141705v77d9e754ia45afd661d048593@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <820E860E-D0FE-4DB3-AC4C-0991E65840D1@bea.com> Content-Transfer-Encoding: 7bit From: Abe White Subject: Re: extraneous joins OPENJPA-134 Date: Thu, 15 Feb 2007 09:40:10 -0600 To: open-jpa-dev@incubator.apache.org X-Mailer: Apple Mail (2.752.3) X-PMX-Version: 4.7.1.128075, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.1.2.131432 X-Virus-Checked: Checked by ClamAV on apache.org > I've looked at the code and it looks correct to me and tried various > things like making the inverse LAZY. But it always generating the > extraneous join. I've attached the entity source code. > > The relationship causing problem is > > @ManyToOne > @JoinColumn(name="ACCOUNT_ACCOUNTID") > private Accountejb2 account2; ManyToOne is eager by default, so right now both sides are eager. _______________________________________________________________________ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.