Consistently support Hibernate annotation hint inference on methods

See gh-32842
This commit is contained in:
Sébastien Deleuze 2024-06-04 15:41:42 +02:00
parent 4da1511ed3
commit f6b608eecb
1 changed files with 2 additions and 0 deletions

View File

@ -200,6 +200,8 @@ class PersistenceManagedTypesBeanRegistrationAotProcessor implements BeanRegistr
registerForReflection(reflection,
AnnotationUtils.findAnnotation(field.getType(), embeddableInstantiatorClass), "value");
});
ReflectionUtils.doWithMethods(managedClass, method -> registerForReflection(reflection,
AnnotationUtils.findAnnotation(method, embeddableInstantiatorClass), "value"));
}
Class<? extends Annotation> valueGenerationTypeClass = loadClass("org.hibernate.annotations.ValueGenerationType", classLoader);