Changeset 6732


Ignore:
Timestamp:
Feb 13, 2015, 12:52:10 PM (7 years ago)
Author:
Nicklas Nordborg
Message:

References #1910: Disable annotation inheritance for annotation types

Do not return annotations for annotation types with inheritance disabled when querying for inherited annotations. This is needed since when inhering an annotation set, all annotations would otherwise be included.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/core/AnnotationSet.java

    r6728 r6732  
    825825      )
    826826    );
     827    query.restrictPermanent(Restrictions.eq(Hql.property("annotationType.disableInheritance"), Expressions.bool(false)));
    827828    return query;
    828829  }
     
    850851      )
    851852    );
     853    query.restrictPermanent(Restrictions.eq(Hql.property("annotationType.disableInheritance"), Expressions.bool(false)));
    852854    query.setDistinct(true);
    853855    return query;
Note: See TracChangeset for help on using the changeset viewer.