I'm not sure about all of the callers but some of the calls that I see are passing in javax.persistence classes (e.g. EntityListeners.class, AssociationOverride.class). https://gist.github.com/sebersole/64be856cfddd54c4eb76 looks fine to me but I'm not familar with the possible callers into AnnotationFactory.create(AnnotationDescriptor descriptor).
I suppose that Hibernate 4.3.x was working because the TCCL was set differently.
|