Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 39190 invoked from network); 27 Mar 2005 13:34:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Mar 2005 13:34:55 -0000 Received: (qmail 21436 invoked by uid 500); 27 Mar 2005 13:34:43 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 21388 invoked by uid 500); 27 Mar 2005 13:34:43 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 21375 invoked by uid 99); 27 Mar 2005 13:34:42 -0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=FORGED_RCVD_HELO,SPF_HELO_PASS,URIBL_SBL X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from smtp-out3.blueyonder.co.uk (HELO smtp-out3.blueyonder.co.uk) (195.188.213.6) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 27 Mar 2005 05:34:41 -0800 Received: from knossos.elmet ([82.38.65.173]) by smtp-out3.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Sun, 27 Mar 2005 14:35:16 +0100 Subject: Re: [betwixt] Relational mappings? From: robert burrell donkin To: Jakarta Commons Users List In-Reply-To: <2d7e88a8cf52bb41a9d0550be3f27965@gmail.com> References: <7E64000045968D47A4DBF8783095365103B2D21B@smai50002p.le500.loto-quebec.com> <2d7e88a8cf52bb41a9d0550be3f27965@gmail.com> Content-Type: text/plain Date: Sun, 27 Mar 2005 14:40:26 +0100 Message-Id: <1111930826.5170.58.camel@knossos.elmet> Mime-Version: 1.0 X-Mailer: Evolution 2.0.1-1mdk Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 27 Mar 2005 13:35:16.0441 (UTC) FILETIME=[CFB7CC90:01C532D1] X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N hi jeremy there are various ways to do this in betwixt. betwixt support the xml concept of ID and IDREF attributes. betwixt should be able to find and match up instances. the only limitation is that the actual definition needs to come before the reference. (it should be pretty easy to add support for the other possibility, though if that's a requirement.) there information about how to do this contained in the documentation on the website. - robert On Mon, 2005-03-21 at 14:36 -0800, Jeremy Denton wrote: > Anyone come up with a good relational mapping structure? Say I had a > the following > > > > > > > > > > > > > > > > > > > > > > > And I have Objects: > > AddressBook > Person > MailingList > > I'd like my MailingList to contain a vector of Person References... > Even if I have to have a PersonRef Class... that's cool. but can I have > my PersonRef Class contain a Reference to a Person object? > > Jeremy > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > -- robert burrell donkin --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org