Understanding Bean Validation 2.0: Bean Validation (agoncal fascicle)
Authors: Antonio Goncalves
ISBN-10: 1980399026
ISBN-13: 9781980399025
Released: 2018-02-26
Print Length 页数: 129 pages
Book Description
Validating data is a common task that Java developers have to do and it is spread throughout all layers (from client to database) of an application. This common practice is time-consuming,error prone,and hard to maintain in the long run. In addition,some of these constraints are so frequently used that they could be considered standard (check for a null value,its size,its range,etc.). It would be good to be able to centralize these constraints in one place and share them across layers. That’s when Bean Validation comes into play.In this fascicle will you will learn Bean Validation and use its different APIs to: – Apply constraints on a bean- Validate all sorts of constraints- Write your own constraints- A few advanced topics- Integrate Bean Validation with other frameworks (JPA,JAX-RS,CDI,Spring)