Concept Flow - Validation groups
Define Validation Groups Interfaces
Annotate Bean Fields with Groups
Trigger Validation with Specific Group
Validation Framework Checks Only That Group's Constraints
Return Validation Result (Errors or Success)
Validation groups let you organize validation rules into sets and apply only the needed set when validating an object.