Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 62316 invoked from network); 7 Sep 2009 09:44:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Sep 2009 09:44:32 -0000 Received: (qmail 51578 invoked by uid 500); 7 Sep 2009 09:44:32 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 51531 invoked by uid 500); 7 Sep 2009 09:44:32 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 51520 invoked by uid 99); 7 Sep 2009 09:44:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Sep 2009 09:44:32 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [87.106.246.69] (HELO rabbit.rabbitenterprise.com) (87.106.246.69) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Sep 2009 09:44:21 +0000 Received: (qmail 27491 invoked from network); 7 Sep 2009 10:50:26 +0100 Received: from cpc2-cmbg15-2-0-cust1021.5-4.cable.virginmedia.com (HELO ?192.168.1.16?) (86.26.15.254) by s15334319.onlinehome-server.info with SMTP; 7 Sep 2009 10:50:26 +0100 Subject: OCM annotation for a collection of references From: Ben Francis To: users@jackrabbit.apache.org Content-Type: multipart/alternative; boundary="=-85Y5JXdpB1eoyulwhCAQ" Organization: Rabbitsoft Date: Mon, 07 Sep 2009 10:43:48 +0100 Message-Id: <1252316628.7238.3.camel@frax> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 X-Virus-Checked: Checked by ClamAV on apache.org --=-85Y5JXdpB1eoyulwhCAQ Content-Type: text/plain Content-Transfer-Encoding: 7bit Dear List, I've been reading a previous thread from 2007 regarding persisting JCR references using Jackrabbit's Object-Content-Mapping and am having problems figuring out how to do so. I am currently trying to implement a tagging system which uses JCR references to reference a "Tag" node from another content node in a Jackrabbit repository. I've not been able to find any documentation on how to annotate a field so that it is stored in JCR as a collection of references. I've tried to figure this out from Jackrabbit unit tests but so far haven't been successful. Has anyone successfully annotated a field so that it is stored in a Jackrabbit repository as a collection of references to other nodes? If so, how would you go about doing this, and how would you add an item to the collection? Also, is it possible to efficiently lookup a list of nodes which reference a particular node? I think I remember reading somethinga about this (possibly in the JCR specification?) but I cant' find it now. Any help would be much appreciated! Thanks Ben --=-85Y5JXdpB1eoyulwhCAQ--