private FieldType[] convertFieldConfigs(ConnectionSource connectionSource, String tableName,
List<DatabaseFieldConfig> fieldConfigs) throws SQLException {
List<FieldType> fieldTypes = new ArrayList<FieldType>();
for (DatabaseFieldConfig fieldConfig : fieldConfigs) {
FieldType fieldType = null;
// walk up the classes until we find the field
for (Class<?> classWalk = dataClass; classWalk != null; classWalk = classWalk.getSuperclass()) {
Field field;
try {
field = classWalk.getDeclaredField(fieldConfig.getFieldName());
} catch (NoSuchFieldException e) {
// we ignore this and just loop hopefully finding it in a upper class
continue;
}
if (field != null) {
fieldType = new FieldType(connectionSource, tableName, field, fieldConfig, dataClass);
break;
}
}
if (fieldType == null) {