[
https://issues.apache.org/jira/browse/JCR-1505?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Christophe Lombart reassigned JCR-1505:
---------------------------------------
Assignee: Christophe Lombart
> 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
> Assignee: Christophe Lombart
> 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 {
> ...
> ...
> }
> It would be nice if the annotation was inherited by default.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.