Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 32314 invoked from network); 19 Feb 2009 02:35:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Feb 2009 02:35:28 -0000 Received: (qmail 5109 invoked by uid 500); 19 Feb 2009 02:35:27 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 5080 invoked by uid 500); 19 Feb 2009 02:35:27 -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 4491 invoked by uid 99); 19 Feb 2009 02:35:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Feb 2009 18:35:25 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Feb 2009 02:35:24 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 53859234C498 for ; Wed, 18 Feb 2009 18:35:04 -0800 (PST) Message-ID: <1996389146.1235010904340.JavaMail.jira@brutus> Date: Wed, 18 Feb 2009 18:35:04 -0800 (PST) From: "Donald Woods (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Assigned: (OPENJPA-925) Bidirectional OneToOne relation incorrectly set in loadEagerJoin In-Reply-To: <755927153.1234939501719.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Donald Woods reassigned OPENJPA-925: ------------------------------------ Assignee: Michael Dick (was: Catalina Wei) > Bidirectional OneToOne relation incorrectly set in loadEagerJoin > ---------------------------------------------------------------- > > Key: OPENJPA-925 > URL: https://issues.apache.org/jira/browse/OPENJPA-925 > Project: OpenJPA > Issue Type: Bug > Affects Versions: 1.2.0, 1.2.1, 1.3.0, 2.0.0-M1, 2.0.0 > Reporter: Catalina Wei > Assignee: Michael Dick > Fix For: 1.3.0, 2.0.0 > > Attachments: OPENJPA-925-branches12x.patch, OPENJPA-925-branches12x.patch > > > A test scenario uncovers a bug in eager loading bidirectional OneToOne relation. > OneOneParent has a bidirectional OneToOne relation with OneOneChild as annotated as following: > @Entity > public class OneOneParent { > ... > @OneToOne(mappedBy="parent") > private OneOneChild child; > } > @Entity > public class OneOneChild { > ... > @OneToOne > private OneOneParent parent; > } > Testcase: > String query = "select c FROM OneOneChild c"; > Query q = em.createQuery(query); > List list = q.getResultList(); > for (int i = 0; i < list.size(); i++) { > OneOneChild c = (OneOneChild) list.get(i); > assertEquals(c, c.getParent().getChild()); > } > We expect c equals c.getParent().getChild(), but instead got assertion failure. > It seems to be a bug introduced in performance improvement work (the related issues: OPENJPA-292 & OPENJPA-744). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.