Package dev.orne.beans
Annotation Type ValidBeanIdentity
@API(status=STABLE,
since="0.1")
@Target({CONSTRUCTOR,METHOD,FIELD,PARAMETER,LOCAL_VARIABLE,TYPE_USE,ANNOTATION_TYPE})
@Retention(RUNTIME)
@Documented
@Constraint(validatedBy=ValidBeanIdentityValidator.class)
@ReportAsSingleViolation
public @interface ValidBeanIdentity
Validation for beans that require a valid, non null identity.
Validates that the bean, if non null, has a non null valid identity.
- Since:
- 0.1
- Version:
- 1.0, 2020-05
- Author:
- (w) Iker Hernaez
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Constraint validator forValidBeanIdentity
. -
Optional Element Summary
-
Element Details
-
message
String messageReturns the error message.- Returns:
- The error message.
- Default:
- "{dev.orne.beans.ValidBeanIdentity.message}"
-
groups
Class<?>[] groupsReturns the validation groups.- Returns:
- The validation groups.
- Default:
- {}
-
payload
Class<? extends javax.validation.Payload>[] payloadReturns the validation client payload.- Returns:
- The validation client payload.
- Default:
- {}
-