From dev-return-10695-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Thu Feb 26 20:29:28 2009 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 58418 invoked from network); 26 Feb 2009 20:29:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Feb 2009 20:29:28 -0000 Received: (qmail 18105 invoked by uid 500); 26 Feb 2009 20:29:27 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 18079 invoked by uid 500); 26 Feb 2009 20:29: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 18067 invoked by uid 99); 26 Feb 2009 20:29:27 -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 12:29:27 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists+1214986235816-210739@n2.nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2009 20:29:18 +0000 Received: from tervel.nabble.com ([192.168.236.150]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Lcmqn-0006lF-Gx for dev@openjpa.apache.org; Thu, 26 Feb 2009 12:28:57 -0800 Message-ID: <1235680137518-2392031.post@n2.nabble.com> Date: Thu, 26 Feb 2009 12:28:57 -0800 (PST) From: Pinaki Poddar To: dev@openjpa.apache.org Subject: Re: [jira] Created: (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=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: ppoddar@apache.org References: <95430167.1235674741749.JavaMail.jira@brutus> X-Virus-Checked: Checked by ClamAV on apache.org Hi, Which version of OpenJPA is being used? With a related issue it was found that OpenJPA 1.2.x QuerySQLCache could be the reason. So either a) deactivate QuerySQLCache with 1.2.x or b) use trunk version that has a completely reworked version of QuerySQLCache JIRA jira@apache.org wrote: > > 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.2.0, 1.1.0, 1.0.3, 1.0.2, 1.0.1, 1.0.0 > Environment: JDK: Sun 1.5 > Database: Derby 10.2.2.0 > OS: Windows XP > Reporter: Yanko Zhivkov > Priority: Critical > > > 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. > > > -- View this message in context: http://n2.nabble.com/-jira--Created%3A-%28OPENJPA-944%29-FetchAttribute.recursionDepth-%3D--1-does-not-load-properly-self-referenced-entities-in-a-complex-relation-tp2391526p2392031.html Sent from the OpenJPA Developers mailing list archive at Nabble.com.