use of org.broadleafcommerce.common.presentation.RequiredOverride in project BroadleafCommerce by BroadleafCommerce.
the class OracleRequiredFieldManagerModifier method isRequiredField.
protected boolean isRequiredField(AdminPresentation adminPresentation, Column column) {
RequiredOverride requiredOverride = adminPresentation.requiredOverride();
String defaultValue = adminPresentation.defaultValue();
return ((column != null && !column.nullable()) || (requiredOverride.equals(RequiredOverride.REQUIRED))) && StringUtils.isEmpty(defaultValue);
}
Aggregations