logger.trace(" Setting default for {} to {} and forced {}", new Object[]{defaultField.getName(), defaultField.getValue(), defaultField.isForce()});
}
// Process @Mapped
Mapped mapped = field.getAnnotation(Mapped.class);
if (mapped != null) {
MappedField mappedField = new MappedField();
mappedField.setName(field.getName());
if (field.getAnnotation(Nullable.class) != null) {
mappedField.setNullable(true);
}
// If @Mapped(target) not set, use Field's class
if (NotSet.class.equals(mapped.target())) {
mappedField.setTarget(field.getType());
// Use @Mapped(target) for MappedField#target
} else {
mappedField.setTarget(mapped.target());
}
mappedField.setFieldClass(field.getType());
modelFields.add(mappedField);