[#8512] JPADatabase may not be able to properly detect AttributeConverter

This commit is contained in:
lukaseder 2019-04-11 16:26:07 +02:00
parent a5d4c00b7a
commit 381adbc492

View File

@ -203,9 +203,12 @@ public class JPADatabase extends H2Database {
for (Entry<Name, AttributeConverter<?, ?>> entry : extractor.extract().entrySet()) {
Class<?> convertToEntityAttribute = null;
for (Method method : entry.getValue().getClass().getMethods())
if ("convertToEntityAttribute".equals(method.getName()))
for (Method method : entry.getValue().getClass().getMethods()) {
if (!method.isBridge() && "convertToEntityAttribute".equals(method.getName())) {
convertToEntityAttribute = method.getReturnType();
break;
}
}
if (convertToEntityAttribute == null) {
log.info("AttributeConverter", "Cannot use AttributeConverter: " + entry.getValue().getClass().getName());