jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg" <stefan.guggisb...@gmail.com>
Subject Re: NodeTypeRegistry.registerNodetypes(Collection); circular dependencies in reference constraints
Date Fri, 30 Jun 2006 14:18:19 GMT
hi stephan,


On 6/27/06, stephan lohwasser <stephan.lohwasser@systemone.at> wrote:
> hi all,
> i have a problem concerning the registration of a set of nodetypes with
> circular references in value constraints of reference properties.
>
> this is an excerpt of the cnd of the nodetypes to be registered:
> __________________________________________________________________________
> <s1Aspect = 'http://www.systemone.at/jcr/aspect'>
> <s1 = 'http://www.systemone.at/jcr'>
>
> [s1Aspect:person]
>         orderable
>         - s1:organisation (reference)
>                 multiple copy
>                 < 's1Aspect:organisation'
>
> [s1Aspect:organisation]
>         orderable
>         - s1:contact (reference)
>                 multiple copy
>                 < 's1Aspect:person'
> __________________________________________________________________
>
> as you can see the person references to nodes of type organisation and
> organisation references to person.
> when trying to register an InvalidNodeTypeDefException is thrown at the
> person nodetype, stating that the nodetype organisation was not found.

circular node type references shouldn't be problem. i tried to reproduce
your issue but everything worked as expected, i.e. i was able to register
both node types.

could you please provide a small test case or a code fragment that
demonstrates your issue?

cheers
stefan


>
> is there a way to get these nodetypes running?
> do i totally missunderstand the concept of value constarints? (is there
> a way to specify which of which type a reference may be? and is this the
> way to to it?)
>
> thanks a lot.
> stephan
>
>
>

Mime
View raw message