If we're going to magically convert ByteEnum to an integer type, then we should

magically assign it a default value of 0 like we do for our other integer types.
This commit is contained in:
Michael Bayne
2008-09-12 00:24:14 +00:00
parent 96bd8b56a0
commit d47e85fe9f
@@ -159,7 +159,8 @@ public abstract class SQLBuilder
field.getType().equals(Integer.TYPE) ||
field.getType().equals(Long.TYPE) ||
field.getType().equals(Float.TYPE) ||
field.getType().equals(Double.TYPE)) {
field.getType().equals(Double.TYPE) ||
ByteEnum.class.isAssignableFrom(field.getType())) {
defaultValue = "0";
} else if (field.getType().equals(Boolean.TYPE)) {