Return-Path: Delivered-To: apmail-ibatis-dev-archive@www.apache.org Received: (qmail 80681 invoked from network); 11 May 2007 10:11:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 May 2007 10:11:39 -0000 Received: (qmail 14287 invoked by uid 500); 11 May 2007 10:11:44 -0000 Delivered-To: apmail-ibatis-dev-archive@ibatis.apache.org Received: (qmail 14163 invoked by uid 500); 11 May 2007 10:11:43 -0000 Mailing-List: contact dev-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ibatis.apache.org Delivered-To: mailing list dev@ibatis.apache.org Received: (qmail 14075 invoked by uid 99); 11 May 2007 10:11:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 May 2007 03:11:43 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 May 2007 03:11:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8CEB0714066 for ; Fri, 11 May 2007 03:11:15 -0700 (PDT) Message-ID: <24681779.1178878275574.JavaMail.jira@brutus> Date: Fri, 11 May 2007 03:11:15 -0700 (PDT) From: "Andrew Bethell (JIRA)" To: dev@ibatis.apache.org Subject: [jira] Created: (IBATIS-427) Bidirectional associations support MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Bidirectional associations support ---------------------------------- Key: IBATIS-427 URL: https://issues.apache.org/jira/browse/IBATIS-427 Project: iBatis for Java Issue Type: New Feature Components: SQL Maps Affects Versions: 2.3.0 Reporter: Andrew Bethell (Added this issue as a new feature, as I cannot find any documentation or instructions on how to implement this with iBATIS.) I have the same requirements described here : http://www.mail-archive.com/user-java@ibatis.apache.org/msg00962.html - in a nutshell I have an 'Order' object which contains a List of 'OrderItem' objects (lazy loaded), but I want the OrderItems to contain references back to the parent 'Order' object (also using a lazy-load property). At the moment iBATIS runs into an infinite loop when I try this (StackOverflowError), and from reading the email thread I mentioned above - it seems like this functionality is not implemented. However, this discussion thread here - http://www.theserverside.com/news/thread.tss?thread_id=34028#171643 - has a comment from one of the iBATIS developers claiming that circular references are supported - "Resolves circular references - iBATIS solves circular references the same way O/R broker does...with a cache. But yes, you do have to configure the cache in iBATIS for this to work." I had a quick go at configuring caching with ibatis, but it didnt seem to change anything. Can anyone shed any light on this issue? Thanks. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.