Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 50813 invoked from network); 2 Jul 2009 08:28:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Jul 2009 08:28:42 -0000 Received: (qmail 3663 invoked by uid 500); 2 Jul 2009 08:28:52 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 3645 invoked by uid 500); 2 Jul 2009 08:28:52 -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 3634 invoked by uid 99); 2 Jul 2009 08:28:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jul 2009 08:28:52 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.208.49.42] (HELO smail6.alcatel.fr) (64.208.49.42) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jul 2009 08:28:41 +0000 Received: from FRVELSBHS02.ad2.ad.alcatel.com (frvelsbhs02.dc-m.alcatel-lucent.com [155.132.6.74]) by smail6.alcatel.fr (8.13.8/8.13.8/ICT) with ESMTP id n628S8mL013677 for ; Thu, 2 Jul 2009 10:28:17 +0200 Received: from FRVELSMBS11.ad2.ad.alcatel.com ([155.132.6.36]) by FRVELSBHS02.ad2.ad.alcatel.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 2 Jul 2009 10:28:07 +0200 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: Newbie: PropertyType.REFERENCE Date: Thu, 2 Jul 2009 10:30:22 +0200 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Newbie: PropertyType.REFERENCE Thread-Index: Acn6gkFEYPjoWvG9SWiDZUitdgDA/wAbPR2g References: From: "BOWLER Paul" To: X-OriginalArrivalTime: 02 Jul 2009 08:28:07.0351 (UTC) FILETIME=[06B65470:01C9FAEF] X-Scanned-By: MIMEDefang 2.57 on 155.132.188.84 X-Virus-Checked: Checked by ClamAV on apache.org Thank Alex, I'll give this a go. Paul. -----Original Message----- From: Alexander Klimetschek [mailto:aklimets@day.com]=20 Sent: 01 July 2009 20:29 To: users@jackrabbit.apache.org Subject: Re: Newbie: PropertyType.REFERENCE 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#set Property(java.lang.String,%20javax.jcr.Node) Regards, Alex --=20 Alexander Klimetschek alexander.klimetschek@day.com