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.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@2415 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
samskivert
2008-09-12 00:24:14 +00:00
parent 858560ca69
commit b82bf914d9
@@ -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)) {