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

Emmanuel Bernard emmanuel at hibernate.org
Thu Aug 29 15:57:05 EDT 2013


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?


More information about the hibernate-dev mailing list