Search in sources :

Example 1 with RequiredOverride

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);
}
Also used : RequiredOverride(org.broadleafcommerce.common.presentation.RequiredOverride)

Aggregations

RequiredOverride (org.broadleafcommerce.common.presentation.RequiredOverride)1