Annotation Interface FieldEquals
@Constraint(validatedBy=FieldEqualsValidator.class)
@Documented
@Retention(RUNTIME)
@Target(TYPE)
public @interface FieldEquals
Validate that multiple fields on an object have identical values.
-
Optional Element Summary
-
Element Details
-
message
String message- Default:
- ""
-
groups
Class<?>[] groups- Default:
- {}
-
payload
Class<? extends javax.validation.Payload>[] payload- Default:
- {}
-
fields
String[] fields- Returns:
- fields to test for equality
- Default:
- {}
-
reportingField
String reportingField- Returns:
- field on which the violation will be reported
- Default:
- ""
-