Annotation Type 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 Payload>[]
    Deprecated.
     
  • Element Details

    • message

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

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

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