Annotation Interface Validated


@Target({PARAMETER,METHOD}) @Retention(RUNTIME) public @interface Validated
Due to limit of @see javax.validation.Valid Annotation for validation groups and ordered validations, this annotation is serving supplementary purposes to validation process.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
    Specify one or more validation groups to apply to the validation.
  • Element Details

    • value

      Class<?>[] value
      Specify one or more validation groups to apply to the validation.
      Returns:
      Validation groups
      Default:
      {jakarta.validation.groups.Default.class}