jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Duncan McIntyre (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-1505) Improve handling of inherited mixins
Date Thu, 27 Mar 2008 17:29:26 GMT
Improve handling of inherited mixins
------------------------------------

                 Key: JCR-1505
                 URL: https://issues.apache.org/jira/browse/JCR-1505
             Project: Jackrabbit
          Issue Type: Improvement
          Components: jackrabbit-ocm
    Affects Versions: 1.4
            Reporter: Duncan McIntyre
            Priority: Minor


If an abstract class is annotated with a mixin type, the annotation must be repeated in concrete
classes.

E.g.
@Node(jcrMixinTypes="mix:referenceable", isAbstract=true)
public abstract class Content {
...
...}

/**
* This class will not be referenceable
**/
@Node(extend=Content.class)
public class Page extends Content {
...
...
}

/**
* But this one will
**/
@Node(extend=Content.class, jcrMixinTypes="mix:referenceable")
public class Folder extends Content {
...
...
}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message