Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 73971 invoked from network); 28 Jul 2005 05:11:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Jul 2005 05:11:10 -0000 Received: (qmail 73579 invoked by uid 500); 28 Jul 2005 05:11:08 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 73566 invoked by uid 99); 28 Jul 2005 05:11:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2005 22:11:08 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of michael.wechner@wyona.com designates 195.226.6.68 as permitted sender) Received: from [195.226.6.68] (HELO mx1.wyona.com) (195.226.6.68) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2005 22:10:59 -0700 Received: from gateway.allette.com.au ([203.111.164.74] helo=[192.168.200.104]) by mx1.wyona.com with asmtp (Exim 3.35 #1 (Debian)) id 1Dy0fe-0005dO-00 for ; Thu, 28 Jul 2005 07:11:03 +0200 Message-ID: <42E86900.9010101@wyona.com> Date: Thu, 28 Jul 2005 07:11:28 +0200 From: Michael Wechner User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050319 X-Accept-Language: en-us, de, fr-ch, en MIME-Version: 1.0 To: jackrabbit-dev@incubator.apache.org Subject: Re: associations between nodes References: <42E72D5E.7090704@wyona.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N David Nuescheler wrote: >does this sound like a parent child relationship? > > no. I shouldn't have used the example "mother", "parent", "child" ;-) >or a reference? > > that's what I thought first, but IIUC this cannot be used, because it's basically just a symbolic/soft link, right? Well, it's really like associations within TopicMaps. I have currently implemented it by creating a sub-node called "associations" and then using multi-valued properties for each type of association and using the UUID strings of the associated nodes for the values. E.g. a project can be associated with multiple tasks/issues, or a owner/person can be associated with multiple projects or multiple tast/issues. But I am sure this could be done a bit more generic ;-) Maybe it's something for a future verision of JSR-170 ... Thanks Michi >regards, >david > >On 7/27/05, Michael Wechner wrote: > > >>Hi >> >>I would like to create bi-directional associations between nodes, e.g. >> >>a "JIRA issue" is associated with a "JIRA project/component" >> >>or >> >>a "person" is associated with a "mother" or "father" (is child of OR >>has child) >> >>Is there any best practice for doing this within JCR? >> >>It seems to me kind of similar to referencable, but IIUC referencable is >>basically a symbolic/soft link and hence cannot be (mis-)used. >> >>Thanks >> >>Michi >> >>-- >>Michael Wechner >>Wyona - Open Source Content Management - Apache Lenya >>http://www.wyona.com http://lenya.apache.org >>michael.wechner@wyona.com michi@apache.org >> >> >> >> > > > > -- Michael Wechner Wyona - Open Source Content Management - Apache Lenya http://www.wyona.com http://lenya.apache.org michael.wechner@wyona.com michi@apache.org