jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@day.com>
Subject Re: Newbie: PropertyType.REFERENCE
Date Wed, 01 Jul 2009 19:28:37 GMT
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#setProperty(java.lang.String,%20javax.jcr.Node)

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message