Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 23831 invoked from network); 1 Jul 2009 19:29:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Jul 2009 19:29:13 -0000 Received: (qmail 549 invoked by uid 500); 1 Jul 2009 19:29:23 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 521 invoked by uid 500); 1 Jul 2009 19:29:23 -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 510 invoked by uid 99); 1 Jul 2009 19:29:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2009 19:29:23 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aklimets@day.com designates 207.126.148.182 as permitted sender) Received: from [207.126.148.182] (HELO eu3sys201aog002.obsmtp.com) (207.126.148.182) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 01 Jul 2009 19:29:11 +0000 Received: from source ([209.85.219.217]) by eu3sys201aob002.postini.com ([207.126.154.11]) with SMTP ID DSNKSku45a+7IrzuGa4sbvQ7M5ypw+diOwkD@postini.com; Wed, 01 Jul 2009 19:28:50 UTC Received: by ewy17 with SMTP id 17so1433586ewy.35 for ; Wed, 01 Jul 2009 12:28:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.53.12 with SMTP id f12mr2876120wec.72.1246476517330; Wed, 01 Jul 2009 12:28:37 -0700 (PDT) In-Reply-To: References: Date: Wed, 1 Jul 2009 21:28:37 +0200 Message-ID: Subject: Re: Newbie: PropertyType.REFERENCE From: Alexander Klimetschek To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Jul 1, 2009 at 3:23 PM, BOWLER Paul wrote: > Can anyone demonstrate (in code) how to set one Node to point to another > Node using node.setProperty(xxx, xxx, PropertyType.REFERENCE). Node.setProperty(String, Node) This will make this property point to the node passed as second argument. See the javadocs: http://www.day.com/maven/jsr170/javadocs/jcr-1.0/javax/jcr/Node.html#setProperty(java.lang.String,%20javax.jcr.Node) Regards, Alex -- Alexander Klimetschek alexander.klimetschek@day.com