Annotation Interface RequiredField


@NotBlank @ReportAsSingleViolation @Constraint(validatedBy={}) @Documented @Retention(RUNTIME) @Target({METHOD,FIELD}) public @interface RequiredField
Validate that a field is non-blank
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
     
     
    Class<? extends javax.validation.Payload>[]
     
  • Element Details

    • message

      String message
      Default:
      "{org.hibernate.validator.constraints.NotBlank.message}"
    • groups

      Class<?>[] groups
      Default:
      {}
    • payload

      Class<? extends javax.validation.Payload>[] payload
      Default:
      {}