&& legalNumericPrimitives.contains(fieldType
.getFullyQualifiedTypeName())) {
fieldType = new JavaType(fieldType.getFullyQualifiedTypeName(), 0,
DataType.PRIMITIVE, null, null);
}
final NumericField fieldDetails = new NumericField(
physicalTypeIdentifier, fieldType, fieldName);
fieldDetails.setNotNull(notNull);
fieldDetails.setNullRequired(nullRequired);
if (decimalMin != null) {
fieldDetails.setDecimalMin(decimalMin);
}
if (decimalMax != null) {
fieldDetails.setDecimalMax(decimalMax);
}
if (digitsInteger != null) {
fieldDetails.setDigitsInteger(digitsInteger);
}
if (digitsFraction != null) {
fieldDetails.setDigitsFraction(digitsFraction);
}
if (min != null) {
fieldDetails.setMin(min);
}
if (max != null) {
fieldDetails.setMax(max);
}
if (column != null) {
fieldDetails.setColumn(column);
}
if (comment != null) {
fieldDetails.setComment(comment);
}
if (unique) {
fieldDetails.setUnique(true);
}
if (value != null) {
fieldDetails.setValue(value);
}
Validate.isTrue(
fieldDetails.isDigitsSetCorrectly(),
"Must specify both --digitsInteger and --digitsFractional for @Digits to be added");
insertField(fieldDetails, permitReservedWords, transientModifier);
}