Annotation Type ConvertGroup


  • @Target({METHOD,FIELD,CONSTRUCTOR,PARAMETER,TYPE_USE})
    @Retention(RUNTIME)
    @Repeatable(List.class)
    @Documented
    public @interface ConvertGroup
    Converts group from to group to during cascading.

    Can be used everywhere Valid is used and must be on an element annotated with Valid.

    Since:
    1.1
    Author:
    Emmanuel Bernard
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.Class<?> to
      The target group of this conversion.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.Class<?> from
      The source group of this conversion.
    • Element Detail

      • to

        java.lang.Class<?> to
        The target group of this conversion.
        Returns:
        the target group of this conversion
      • from

        java.lang.Class<?> from
        The source group of this conversion.
        Returns:
        the source group of this conversion
        Default:
        jakarta.validation.groups.Default.class