Annotation Interface CUID
@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER})
@Retention(RUNTIME)
@Documented
@Constraint(validatedBy={CUIDAsStringImpl.class,CUIDAsByteArrayImpl.class})
public @interface CUID
The annotated element must be a valid CUID.
- Since:
- 1.5.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interface
Defines several@CUID
annotations on the same element -
Optional Element Summary
Optional Elements
-
Element Details
-
message
String message- Returns:
- The constraint error message
- Since:
- 1.5.0
- Default:
- "{voidframework.validation.constraints.CUID.message}"
-
groups
Class<?>[] groups- Returns:
- The subset of constraints
- Since:
- 1.5.0
- Default:
- {}
-
payload
Class<? extends jakarta.validation.Payload>[] payload- Returns:
- The attached Payload type
- Since:
- 1.5.0
- Default:
- {}
-