[hibernate-dev] hiberate-commons-annotations and locating annotations

Gunnar Morling gunnar at hibernate.org
Thu Aug 29 16:06:37 EDT 2013


2013/8/29 Emmanuel Bernard <emmanuel at hibernate.org>

> On Thu 2013-08-29 14:22, Steve Ebersole wrote:
> > Given an XProperty, is there a way to ask for annotations which are
> > defined only locally on that declared property (not on any super
> classes)?
>
> I believe that is what XProperty will give you.
> The list of XProperty of a given XClass is computed from
> Class.getDeclaredMethod, so it does not look for superclass methods.
>
> Could it be that @Convert is marked @Inherited?
>

@Inherited applies to annotations on classes only, it has no effect for
annotations on properties.


> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>


More information about the hibernate-dev mailing list