@Target({METHOD,FIELD,CONSTRUCTOR,PARAMETER,TYPE_USE})
@Retention(RUNTIME)
@Repeatable(ConvertGroup.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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
Defines severalConvertGroup
annotations on the same element. -
Required Element Summary
-
Optional Element Summary
-
Element Details
-
from
Class<?> fromThe source group of this conversion.- Returns:
- the source group of this conversion
- Default:
jakarta.validation.groups.Default.class
-
to
-