官术网_书友最值得收藏!

Data validation

Validating your application's data is a required step before any of your business operations. Jakarta EE provides the Java Validation API, which integrates well with other APIs, like JPA and JAX-RS. With this API, you can declare all your validation rules to be processed automatically for you, whenever you receive new data from the user. It's as easy as annotating your domain objects with the appropriate annotation.

In Chapter 4Validating Data with Bean Validation 2.0, we'll learn how to use the Java Validation API to perform programmatic and automatic bean validation, how to validate graphs of objects in a bean, and the different validation constraints available. Moreover, we'll learn how to validate bean method parameters and return values, and how to define custom validation constraints to handle more complex and recurrent validation scenarios.

主站蜘蛛池模板: 板桥市| 阿克苏市| 长宁县| 辛集市| 曲阜市| 桃园县| 扎兰屯市| 旬阳县| 锡林郭勒盟| 东台市| 玉林市| 镇平县| 美姑县| 波密县| 南岸区| 中牟县| 视频| 安新县| 荔波县| 定陶县| 当阳市| 盱眙县| 合川市| 曲靖市| 昭平县| 兴城市| 丹寨县| 西贡区| 佛学| 太仓市| 江阴市| 资中县| 云林县| 呼伦贝尔市| 余干县| 咸阳市| 永登县| 灵璧县| 桂阳县| 安图县| 时尚|