jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "BOWLER Paul" <Paul.Bow...@alcatel-lucent.com>
Subject RE: Newbie: PropertyType.REFERENCE
Date Thu, 02 Jul 2009 08:30:22 GMT
Thank Alex, I'll give this a go.

Paul.

-----Original Message-----
From: Alexander Klimetschek [mailto:aklimets@day.com] 
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<Paul.Bowler@alcatel-lucent.com> 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

-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message