Annotation Type NotBlank


@Documented @Constraint(validatedBy={}) @Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(RUNTIME) @ReportAsSingleViolation @NotNull @Repeatable(List.class) @Deprecated public @interface NotBlank
Deprecated.
use the standard NotBlank constraint instead
Validate that the annotated string is not null or empty. The difference to NotEmpty is that trailing whitespaces are getting ignored.
Author:
Hardy Ferentschik
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    Deprecated.
    Defines several @NotBlank annotations on the same element.
  • Optional Element Summary

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

    • message

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

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

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