From dev-return-11730-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Thu May 07 13:18:57 2009 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 12427 invoked from network); 7 May 2009 13:18:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 May 2009 13:18:57 -0000 Received: (qmail 59825 invoked by uid 500); 7 May 2009 13:18:56 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 59723 invoked by uid 500); 7 May 2009 13:18:55 -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 59661 invoked by uid 99); 7 May 2009 13:18:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 May 2009 13:18:54 +0000 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, 07 May 2009 13:18:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4F154234C003 for ; Thu, 7 May 2009 06:18:30 -0700 (PDT) Message-ID: <245013744.1241702310319.JavaMail.jira@brutus> Date: Thu, 7 May 2009 06:18:30 -0700 (PDT) From: "Donald Woods (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (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-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-944?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Donald Woods updated OPENJPA-944: --------------------------------- Patch Info: [Patch Available] > 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: fix_recursive_entity_loading-OPENJPA-944-openjpa1.0.1.patch, fix_recursive_entity_loading-OPENJPA-944-openjpa1.2.1.patch, 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.