Annotation Type MyDataPolicy


@Target({METHOD,FIELD}) @Retention(RUNTIME) @Constraint(validatedBy=PolicyValidator.class) public @interface MyDataPolicy
  • Optional Element Summary

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

    • message

      String message
      Default:
      "is not a valid policy"
    • groups

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

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