[
https://issues.apache.org/jira/browse/JCR-1505?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Duncan McIntyre updated JCR-1505:
---------------------------------
Description:
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.
was:
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 {
...
...
}
> 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 {
> ...
> ...
> }
> 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.