Java Reference
In-Depth Information
@GroupSequence({Default.class, ExpensiveValidationGroup.class})
public interface FullValidationGroup {}
When validating
FullValidationGroup
, first the
Default
group is validated. If all
the data passes validation, then the
ExpensiveValidationGroup
group is validated.
If a constraint is part of both the
Default
and the
ExpensiveValidationGroup
groups, the constraint is validated as part of the
Default
group, and will not be validated
on the subsequent
ExpensiveValidationGroup
pass.