Meta annotation @AnyDiscriminatorValue does not work


I feel like using meta annotation doesn’t work as shown in the documentation and examples (below) to gather all possible @AnyDiscriminatorValue.

And looking/debugging in the code I only saw this exploiting this annotation from a property without it being able to access a meta annotation (

did I miss something ?

Since the support for meta annotations is pretty new, there might be some rough edges. Please create an issue in the issue tracker( with a test case(hibernate-test-case-templates/ at main · hibernate/hibernate-test-case-templates · GitHub) that reproduces the issue.