Class StandardMandatoryGroupValidatorContribution

java.lang.Object
ch.tocco.nice2.persist.core.api.validation.StandardMandatoryGroupValidatorContribution

public class StandardMandatoryGroupValidatorContribution extends Object
Validator witch checks that either all of the provided fields are empty or all of the provided fields are filled out.

Examples


 @Bean
 public StandardMandatoryGroupValidatorContribution accrualExportStandardMandatoryGroupValidatorContribution() {
     StandardMandatoryGroupValidatorContribution contribution = new StandardMandatoryGroupValidatorContribution();
     contribution.setEntityName("Order");
     contribution.setFields("service_start_date, service_end_date");
     return contribution;
 }
 
  • Constructor Details

    • StandardMandatoryGroupValidatorContribution

      public StandardMandatoryGroupValidatorContribution()
  • Method Details

    • getEntityName

      public String getEntityName()
    • setEntityName

      public void setEntityName(String entityName)
    • getFields

      public String getFields()
    • setFields

      public void setFields(String fields)