/**
* Create a field config from the javax.persistence annotations associated with the field argument. Returns null if
* none.
*/
public static DatabaseFieldConfig createFieldConfig(DatabaseType databaseType, Field field) throws SQLException {
Annotation columnAnnotation = null;
Annotation idAnnotation = null;
Annotation generatedValueAnnotation = null;
Annotation oneToOneAnnotation = null;
Annotation manyToOneAnnotation = null;
for (Annotation annotation : field.getAnnotations()) {
Class<?> annotationClass = annotation.annotationType();
if (annotationClass.getName().equals("javax.persistence.Column")) {
columnAnnotation = annotation;