You have to define node types in advance (using a custom file format
for defining them, either cnd or xml) and register them with
Jackrabbit, before you can use them (using the second parameter in
Node.addNode()). In the cnd notation, the setting for allowing same
name siblings is "multiple". For more information, see

http://jackrabbit.apache.org/node-types.html

and

http://jackrabbit.apache.org/node-type-notation.html

Regards,
Alex

On Sat, Oct 11, 2008 at 11:56 AM, Hervé Agnoux
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I should want forbidden same name sibling on childs'node. But I don't
> understand how to do.
>
> I've seen, in javax.jcr.nodetype.NodeDefinition, a "public boolean
> allowsSameNameSiblings()", but I don't undertstand how to set it, how to
> create a NodeDefinition, and how put it on a node.
>
> Thanks for your help.
>



-- 
Alexander Klimetschek
[EMAIL PROTECTED]

Reply via email to