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

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.

主站蜘蛛池模板: 迁安市| 舟山市| 水富县| 成武县| 延津县| 平江县| 沭阳县| 锡林浩特市| 库伦旗| 尼勒克县| 安西县| 雷山县| 镇平县| 凤凰县| 明溪县| 乌鲁木齐县| 广东省| 台中市| 临武县| 新平| 临武县| 宝鸡市| 海门市| 惠东县| 磐安县| 和政县| 铁岭市| 盐城市| 凉城县| 原平市| 宁远县| 青州市| 玉林市| 大冶市| 浦东新区| 大庆市| 济源市| 上杭县| 县级市| 玉环县| 吴桥县|