From torque-user-return-8085-apmail-db-torque-user-archive=db.apache.org@db.apache.org Thu Feb 12 10:02:04 2009 Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 74300 invoked from network); 12 Feb 2009 10:02:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2009 10:02:02 -0000 Received: (qmail 88946 invoked by uid 500); 12 Feb 2009 10:02:02 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 88920 invoked by uid 500); 12 Feb 2009 10:02:02 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 88909 invoked by uid 99); 12 Feb 2009 10:02:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2009 02:02:02 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [82.204.126.17] (HELO smtp3.bbeyond.nl) (82.204.126.17) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2009 10:01:52 +0000 Received: from amavisd-new (smtp3.bbeyond.nl [82.204.126.17]) by smtp3.bbeyond.nl (Postfix) with ESMTP id 5A9BE84C8E for ; Thu, 12 Feb 2009 11:01:27 +0100 (CET) X-Virus-Scanned: BBeyond amavisd-new at smtp3.bbeyond.nl Received: from smtp3.bbeyond.nl ([82.204.126.17]) by amavisd-new (smtp3.bbeyond.nl [82.204.126.17]) (amavisd-new, port 10024) with ESMTP id avdCJPf-XQXr for ; Thu, 12 Feb 2009 11:01:27 +0100 (CET) Received: from appserv03.ams.usmedia.nl (62-177-191-158.dsl.bbeyond.nl [62.177.191.158]) by smtp3.bbeyond.nl (Postfix) with ESMTP id 0A57D84CAB for ; Thu, 12 Feb 2009 11:01:26 +0100 (CET) Received: from localhost (localhost.localdomain [127.0.0.1]) by appserv03.ams.usmedia.nl (Postfix) with ESMTP id AC278DA5C6E for ; Thu, 12 Feb 2009 11:01:26 +0100 (CET) X-Virus-Scanned: amavisd-new at appserv03.ams.usmedia.nl Received: from appserv03.ams.usmedia.nl ([127.0.0.1]) by localhost (appserv03.ams.usmedia.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r-XGdk2ynJLM for ; Thu, 12 Feb 2009 11:01:25 +0100 (CET) Received: from appserv03.ams.usmedia.nl (appserv03.ams.usmedia.nl [192.168.0.13]) by appserv03.ams.usmedia.nl (Postfix) with ESMTP id 84347DA4475 for ; Thu, 12 Feb 2009 11:01:25 +0100 (CET) Date: Thu, 12 Feb 2009 11:01:25 +0100 (CET) From: "Hidde Boonstra [Us Media]" To: Apache Torque Users List Message-ID: <13329676.440041234432885506.JavaMail.root@appserv03.ams.usmedia.nl> In-Reply-To: <32988436.440021234432841644.JavaMail.root@appserv03.ams.usmedia.nl> Subject: Re: Antwort: Correct way to getRelatedObjects with each relatedObject reference to this object? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.0.127] X-Mailer: Zimbra 5.0.12_GA_2790.RHEL4 (ZimbraWebClient - FF3.0 (Linux)/5.0.12_GA_2790.RHEL4) X-Virus-Checked: Checked by ClamAV on apache.org Hi Thomas, as an user / programmer I would expect parent.getChildren().getParent() to return the original parent object. Thus I would agree that it feels natural to set the parent of the children upon retrieval of those children. Regards, Hidde. ----- "Thomas Fischer" wrote: > The only way to achieve this in general would be modifying the > object.vm template which generatates the get${relCol} method. > > I would believe that the behaviour you describe would make sense > generally. Any opinions on that from other people ? By doing this one > would increase coupling between objects. > > Thomas -- Hidde Boonstra Us Media B.V. Stadhouderskade 115 1073 AX Amsterdam t: 020 428 68 68 f: 020 470 69 05 www.usmedia.nl --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org