An overview of the Validation process
Chapter 2. Validation step by step 2.1. Defining constraints 2.1.1. Field-level constraints 2.1.2. Property-level constraints 2.1.3. Class-level constraints 2.1.4. Constraint inheritance 2.1.5. Object graphs 2.2. Validating constraints 2.2.1. Obtaining a Validator instance 2.2.2. Validator methods 2.2.3. ConstraintViolation methods 2.2.4. Message interpolation 2.3. Validating groups 2.3.1. Group sequences 2.3.2. Redefining the default group sequence of a class 2.4. Built-in constraints In this chapter we will see in more detail how to use Hibernate Validator to validate constraints for a given entity model. We will also learn which default constraints the Bean Validation specification provides and which additional constraints are only provided by Hibernate Validator. Let's start with how to add constraints to an entity.