Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-1505

Improve handling of inherited mixins

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.4
    • 1.5
    • jackrabbit-ocm
    • None

    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.

      Attachments

        Activity

          People

            clombart Christophe Lombart
            duncanfrance Duncan McIntyre
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: