jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Bauer <peter.ba...@apus.co.at>
Subject AW: Multi-Valued Reference Properties
Date Mon, 16 Jun 2008 12:19:21 GMT

Hi all,

i missed the ValueFactory:

Value nodeValue = session.getValueFactory().createValue(referencednode);

br,
Peter

----- "Peter Bauer" <peter.bauer@apus.co.at> schrieb:

> Hi all,
> 
> it seems that many people are using properties storing multiple
> references, but i can't find out how to do so. According to the JCR
> API, there are the following methods for setting multi-valued
> properties:
> 
> setProperty(java.lang.String name, java.lang.String[] values)
> setProperty(java.lang.String name, java.lang.String[] values, int
> type)
> setProperty(java.lang.String name, Value[] values)
> setProperty(java.lang.String name, Value[] values, int type)
> 
> So a REFERENCE has to be either converted into a String (UUID String
> -> referential integrity?) or into a Value (how?).
> 
> thx,
> Peter

Mime
View raw message