protected void validateFieldAsInteger(Field field, Object object, Errors errors)
{
IntegerConstraint req = field.getAnnotation(IntegerConstraint.class);
if (req.required() && validateNull(field, object)) errors.rejectValue(field.getName(), errorCodes[0]);
int min = req.minValue();
int max = req.maxValue();
validateNumber(min, max, field, object, errors);
}
protected void validateFieldAsDouble(Field field, Object object, Errors errors)
{