Return-Path: Delivered-To: apmail-openjpa-users-archive@locus.apache.org Received: (qmail 94623 invoked from network); 7 May 2008 16:44:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 May 2008 16:44:55 -0000 Received: (qmail 97437 invoked by uid 500); 7 May 2008 16:44:57 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 97267 invoked by uid 500); 7 May 2008 16:44:57 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 97256 invoked by uid 99); 7 May 2008 16:44:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 May 2008 09:44:57 -0700 X-ASF-Spam-Status: No, hits=-2.2 required=10.0 tests=MIME_QP_LONG_LINE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [193.109.254.147] (HELO mail27.messagelabs.com) (193.109.254.147) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 07 May 2008 16:44:11 +0000 X-VirusChecked: Checked X-Env-Sender: mvorburger@odyssey-group.com X-Msg-Ref: server-9.tower-27.messagelabs.com!1210178663!54147426!1 X-StarScan-Version: 5.5.12.14.2; banners=odyssey-group.com,-,- X-Originating-IP: [195.80.235.201] Received: (qmail 1537 invoked from network); 7 May 2008 16:44:23 -0000 Received: from unknown (HELO mail3.oams.com) (195.80.235.201) by server-9.tower-27.messagelabs.com with SMTP; 7 May 2008 16:44:23 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: maintaining bi-directional relationships Date: Wed, 7 May 2008 18:44:21 +0200 Message-ID: <12D996978341E849B21C51CC97F4771DB7DDEF@mail3.oams.com> In-Reply-To: <4821CFC8.1020402@cyberspaceroad.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: maintaining bi-directional relationships Thread-Index: AciwWiyRg91lp8q9SCe/c+3OkwElvQABzbnA References: <4821CFC8.1020402@cyberspaceroad.org> From: "Michael Vorburger" To: X-Virus-Checked: Checked by ClamAV on apache.org Why=20not=20use=20OpenJPA=20Managed=20Inverses, http://openjpa.apache.org/docs/latest/manual/ref_guide_inverses.html=20? -----Original=20Message----- From:=20Adam=20Hardy=20[mailto:adam.sql@cyberspaceroad.org]=20 Sent:=20mercredi,=207.=20mai=202008=2017:51 To:=20users@openjpa.apache.org Subject:=20maintaining=20bi-directional=20relationships This=20is=20a=20design=20question=20really,=20sorry=20it's=20a=20little=20= OT. I=20assume=20I=20have=20responsibility=20for=20maintaining=20parent=20-=20= child relationships=20reflected=20by=20the=20parent.getChildren=20collection=20a= nd child.getParent=20entity=20at=20the=20point=20where=20the=20change=20occur= s. Is=20there=20a=20good=20pattern=20to=20implement=20changes=20to=20both=20t= he=20children collection=20on=20the=20parent=20and=20the=20parent=20entity=20on=20the=20= child? One=20approach:=20setting=20field-access=20on=20the=20entity=20mapping,=20= and=20adding code=20to=20the=20setters=20with=20some=20sort=20of=20mechanism=20to=20sto= p=20infinite looping. Thanks=20in=20advance Adam ____________________________________________________________ =95=20This=20email=20and=20any=20files=20transmitted=20with=20it=20are=20C= ONFIDENTIAL=20and=20intended =20=20solely=20for=20the=20use=20of=20the=20individual=20or=20entity=20to=20= which=20they=20are=20addressed. =95=20Any=20unauthorized=20copying,=20disclosure,=20or=20distribution=20of= =20the=20material=20within =20=20this=20email=20is=20strictly=20forbidden. =95=20Any=20views=20or=20opinions=20presented=20within=20this=20e-mail=20a= re=20solely=20those=20of=20the =20=20author=20and=20do=20not=20necessarily=20represent=20those=20of=20Ody= ssey=20Financial Technologies=20SA=20unless=20otherwise=20specifically=20stated. =95=20An=20electronic=20message=20is=20not=20binding=20on=20its=20sender.=20= Any=20message=20referring=20to =20=20a=20binding=20engagement=20must=20be=20confirmed=20in=20writing=20an= d=20duly=20signed. =95=20If=20you=20have=20received=20this=20email=20in=20error,=20please=20n= otify=20the=20sender=20immediately =20=20and=20delete=20the=20original.