return map;
}
private static MappingInfo processObjectField(Field field) throws InstantiationException, IllegalAccessException {
MappingInfo mapping = new MappingInfo();
mapping.setName(convertCaseChangeToUnderscore(field.getName()));
if (isFieldPrimitive(field.getType())) {
mapping.setType(getFieldType(field));
}
else if (isFieldOneToMany(field.getType())) {
mapping.setOneToMany(true);
}
// One to one object
else {
mapping.setOneToOne(true);
}
return mapping;
}