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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user