I am attempting to convert my @Any and @ManyToAny discriminator definitions into meta annotations and I’m also running into problems. The example in the documentation does not provide an example of the “correct” meta annotation. So, I pieced together this thing:
In a project using pure Hibernate 6.2.6.Final, I’m getting things like:
When trying to execute a findAll() on a Spring Boot repository, it throws things like this:
If I replace the meta annotation with the regular @Any… annotations, everything works fine. Am I creating the meta annotation correctly? Or is this something we should not use yet? If so and this gets fixed, can we get an example meta annotation added to the documentation? |