As suggested, re-worked ReflectHelper to use Classmate to fully resolve field types and method return types.
https://github.com/hibernate/hibernate-orm/commit/8e9ea2aaecdac72897702d5a63275778639dbefe created a new setting (disabled by default) and put the auto-indexing behind it. Unless enabled, @Embeddable classes must now be explicitly listed in the annotated classes. Ditto for @Target classes.
As suggested, re-worked ReflectHelper to use Classmate to fully resolve field types and method return types.
https://github.com/hibernate/hibernate-orm/commit/8e9ea2aaecdac72897702d5a63275778639dbefe created a new setting (disabled by default) and put the auto-indexing behind it. Unless enabled, @Embeddable classes must now be explicitly listed in the annotated classes. Ditto for @Target classes.