Added logging for unsupported field types

This commit is contained in:
Francesco 2023-10-05 10:01:38 +02:00
parent 4177bdcd43
commit 2fe4eedc4b

View File

@ -185,6 +185,8 @@ public class DbAdmin {
field.setSchema(schema); field.setSchema(schema);
schema.addField(field); schema.addField(field);
} catch (UnsupportedFieldTypeException e) { } catch (UnsupportedFieldTypeException e) {
logger.warn("The class " + klass.getSimpleName() + " contains the field `"
+ f.getName() + "` of type `" + f.getType().getSimpleName() + "`, which is not supported");
schema.addError( schema.addError(
new MappingError( new MappingError(
"The class contains the field `" + f.getName() + "` of type `" + f.getType().getSimpleName() + "`, which is not supported" "The class contains the field `" + f.getName() + "` of type `" + f.getType().getSimpleName() + "`, which is not supported"