private JavaVariable generateFieldVariable(String fieldNameJavaStyle, SchemaField field) {
JavaVariable newVariable;
String typeText = field.getJavaTypeText();
String defaultValue = field.getFormattedClassDefaultValue();
boolean dateType = typeText.endsWith("Date");
<BUG>if (dateType && dateTimeSupport) {
newVariable = new JavaVariable("org.joda.time.DateTime", fieldNameJavaStyle);
} else {</BUG>
newVariable = new JavaVariable(typeText, fieldNameJavaStyle);
<BUG>}</BUG>
SchemaFieldType fieldType = field.getJdbcDataType();
<BUG>boolean immutableDate = field.getJavaClassType() == Date.class && dateTimeSupport; // org.joda.time.DateTime IS immutable
</BUG>
if (!fieldType.isJavaTypePrimative() && !fieldType.isJavaTypeImmutable() && !immutableDate) {

private JavaVariable generateFieldVariable(String fieldNameJavaStyle, SchemaField field) {
JavaVariable newVariable;
String typeText = field.getJavaTypeText();
String defaultValue = field.getFormattedClassDefaultValue();
boolean dateType = typeText.endsWith("Date");
newVariable = new JavaVariable(typeText, fieldNameJavaStyle);
SchemaFieldType fieldType = field.getJdbcDataType();
boolean immutableDate = field.getJavaClassType() == Date.class; // && dateTimeSupport; // org.joda.time.DateTime IS immutable
if (!fieldType.isJavaTypePrimative() && !fieldType.isJavaTypeImmutable() && !immutableDate) {
