Bean Validation
The Bean Validation 1.1 Specification was developed under JSR 349. This section just gives you an overview of improvements in the API. The complete document specification (for more information) can be downloaded from http://jcp.org/aboutJava/communityprocess/final/jsr349/index.html.
We are almost at the end of the realization of our online preregistration application. In the previous chapters, we developed the different layers of our application and now we need to validate the data that will be handled by this application.
Validating your data
The Java language provides for Java SE and Java EE developers the Bean Validation Specification, which allows us to express constraints on objects. By default, it offers a small number of constraints (compared to the needs that you may have) called built-in constraints (see the following table). But, it gives you the opportunity to combine these constraints in order to make much more complex constraints (custom constraints) that suit...