hibernate / hibernate-models

An abstraction over "reflection" and annotations
Apache License 2.0
2 stars 5 forks source link

Expose access to meta-annotations #13

Closed sebersole closed 5 months ago

sebersole commented 5 months ago

In many places we allow for meta-annotations, sometimes called composed annotations. Consider the model -

@Nationalized
@interface SomethingSpecial {
}

@Entity 
class Book {
    ...
    @Basic
    @SomethingSpecial
    String isbn;
}

Here, we will "see" isbn as being nationalized "transitively" across its @SomethingSpecial usage.

Encode that as a feature into the API. I propose the naming locateAnnotationUsage as the corollary to getAnnotationUsage.