Chapter 22. Bean Validation: Advanced Topics
This chapter describes how to create custom constraints, custom validator messages, and constraint groups using the Java API for JavaBeans Validation (Bean Validation).
The following topics are addressed here:
Creating Custom Constraints
Bean Validation defines annotations, interfaces, and classes to allow developers to create custom constraints.
Using the Built-In Constraints to Make a New Constraint
Bean Validation includes several built-in constraints that can be combined to create new, reusable constraints. This can simplify constraint definition by allowing developers ...