Skip navigation links

Package jakarta.validation.groups

A group defines a subset of constraints.

See: Description

Package jakarta.validation.groups Description

A group defines a subset of constraints. Instead of validating all constraints for a given object graph, only a subset is validated depending on the group targeted.

Each constraint declaration defines the list of groups it belongs to. If no group is explicitly declared, a constraint belongs to the Default group.

When applying validation, the list of target groups is passed along. If no group is explicitly passed along, the jakarta.validation.groups.Default group is used.

During cascading, groups can be converted from one to another by the use of ConvertGroup

Skip navigation links

Comments to: bean-validation-dev@eclipse.org.
Copyright © 2019,2020 Eclipse Foundation.
Use is subject to EFSL; this spec is based on material that is licensed under the Apache License, version 2.0.