This topic has not yet been written. The content below is from the topic description.
2.2.2. Validator methods The Validator interface contains three methods that can be used to either validate entire entities or just a single properties of the entity. All three methods return a Set . The set is empty, if the validation succeeds. Otherwise a ConstraintViolation instance is added for each violated constraint. All the validation methods have a var-args parameter which can be used to specify, which validation groups shall be considered when performing the validation. If the parameter is not specified the default validation group (javax.validation.groups.Default) will be used. We will go into more detail on the topic of validation groups in Section 2.3, “Validating groups”