jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roberto Fonti (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-567) more restrictive constraints on a property of a derived node type
Date Mon, 11 Sep 2006 14:57:22 GMT
more restrictive constraints on a property of a derived node type
-----------------------------------------------------------------

                 Key: JCR-567
                 URL: http://issues.apache.org/jira/browse/JCR-567
             Project: Jackrabbit
          Issue Type: Improvement
          Components: core
    Affects Versions: 1.0.1
            Reporter: Roberto Fonti
            Priority: Minor


NodeTypes definition should allow to assign more restrictive constraints on a property when
it is defined for a subtype.

Example:

[rf:Organization] > mix:referenceable, nt:base
[rf:University] > rf:Organization

[rf:Person] > nt:base
 - rf:worksFor (reference)
   < 'rf:Organization'
[rf:Professor] > rf:Person
 - rf:worksFor (reference)
   < 'rf:University' 

In the example, the property "rf:worksFor" has the constraint "rf:Organization" when it is
defined for a Person,
while it has the constraint "rf:University" (a subtype of Organization) when it is defined
for a Professor (a subtype of Person).

Currently you get a NodeTypeConflictException registering such NodeTypes.

In general, this consideration should apply for all property types (not only references).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message