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

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.

主站蜘蛛池模板: 曲水县| 阿拉善左旗| 潮安县| 泸西县| 彭州市| 巴楚县| 阿荣旗| 共和县| 车险| 榕江县| 旅游| 额敏县| 太仓市| 六枝特区| 中牟县| 平乐县| 股票| 图们市| 兴文县| 本溪市| 正定县| 昌都县| 府谷县| 犍为县| 宣化县| 天水市| 平江县| 集贤县| 长宁县| 威宁| 阜城县| 枣阳市| 赣州市| 仪陇县| 东乌| 广德县| 永兴县| 若羌县| 阳信县| 博野县| 墨竹工卡县|