Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 26776 invoked from network); 26 Feb 2009 19:17:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Feb 2009 19:17:25 -0000 Received: (qmail 20868 invoked by uid 500); 26 Feb 2009 19:17:25 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 20701 invoked by uid 500); 26 Feb 2009 19:17:25 -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 20690 invoked by uid 99); 26 Feb 2009 19:17:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2009 11:17:24 -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, 26 Feb 2009 19:17:23 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C79FD234C48C for ; Thu, 26 Feb 2009 11:17:01 -0800 (PST) Message-ID: <838088729.1235675821813.JavaMail.jira@brutus> Date: Thu, 26 Feb 2009 11:17:01 -0800 (PST) From: "Yanko Zhivkov (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Issue Comment Edited: (OPENJPA-944) FetchAttribute.recursionDepth = -1 does not load properly self referenced entities in a complex relation In-Reply-To: <95430167.1235674741749.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-944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12677102#action_12677102 ] yzhivkov edited comment on OPENJPA-944 at 2/26/09 11:16 AM: ----------------------------------------------------------------- Attached a test case that shows the error. I tried the test case with 1.0.0, 1.0.1, 1.0.3, 1.1.0 and 1.2.0 and even with the latest trunk code but neither of them work. The provided test case extends SingleEMFTestCase and can directly be copied into openjpa-persistence-jdbc/src/test for being executed within there as well. was (Author: yzhivkov): Attached a test case that shows the error. I tried the test case with 1.0.0, 1.0.1, 1.0.3, 1.1.0 and 1.2.0 and even with the latest trunk code but neither of them work. > FetchAttribute.recursionDepth = -1 does not load properly self referenced entities in a complex relation > -------------------------------------------------------------------------------------------------------- > > Key: OPENJPA-944 > URL: https://issues.apache.org/jira/browse/OPENJPA-944 > Project: OpenJPA > Issue Type: Bug > Components: jdbc, kernel > Affects Versions: 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.1.0, 1.2.0 > Environment: JDK: Sun 1.5 > Database: Derby 10.2.2.0 > OS: Windows XP > Reporter: Yanko Zhivkov > Priority: Critical > Attachments: openjpa_complex_relation_recursion_test.zip > > > A problem with loading recursively referenced entities was found when there is a complex relation of the following kind: > Leaf <-> BranchConnection <-> Branch(1) <- Branch(2) <- ... > where Branch has a self reference to itself. > Using a FetchPlan with a fetch group that has a fetch attribute with recursionDepth=-1 does not produce the expected result and only the first of the Branch nodes is loaded. > Loading a Leaf with 5 branches in a row and traversing through them fails right on level 3 (starting from 5 downwards) which leads to the thought that OpenJPA loads only the first element (along with its direct parent). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.