Java EE: Bean Validation

Java EE: Bean Validation
Java EE: Bean Validation

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 2h 20m | 372 MB
eLearning | Skill level: Intermediate

Learn how to use one of the most useful and important Java EE APIs: the Bean Validation API. This API cuts across the entire Java EE ecosystem and provides features to ensure the integrity of your application by protecting it from rogue and misshapen data.

In this course, you can journey through the many constraints that are built into the 2.0 version of the Bean Validation API, as well as the additional constraints provided by the Hibernate Validator 6.0. Learn Bean Validation in a practical way while you build a functioning web application. Instructor Alex Theedom shows how to extend the API with custom constraints and how to internationalize validation failure messages. Plus, learn advanced techniques such as cross-field and cross-parameter validation, and how Bean Validation integrates with other Java EE technologies such as JAX-RS, Java Persistence API (JPA), and JavaServer Faces (JSF). By the end of this course, you will have gained practical experience of using Bean Validation in a real web application and be able to implement what you have learned in your own Java applications.

Topics include:

  • What is Bean Validation?
  • Applying the built-in constraints
  • Applying Hibernate constraints
  • Designing custom constraint validators
  • Managing and configuring validation failure messages
  • Creating custom composite constraints
  • Creating custom validation constraints
  • Cross-field and cross-parameter validation
  • Integration with RESTful web services (JAX-RS)
+ Table of Contents

1 Welcome
2 What you should know
3 Using the exercise files
4 Using the challenges

What Is Bean Validation
5 Bean Validation headline features
6 Java EE ecosystem integration
7 Bean Validation implementations

Course Project Introduction
8 Course project walk-through
9 How to work with the project

Applying Built-In Bean Validation Constraints
10 Built-in constraints introduction
11 Null constraints introduction
12 Null constraints implementation
13 Numerical constraints introduction
14 Numerical constraints implementation
15 Pattern, Boolean, and date constraints introduction
16 Pattern, Boolean, and date constraints implementation

Applying Hibernate Bean Validation Constraints
17 Hibernate constraints overview
18 Hibernate constraints implementation

Designing Custom Constraint Validators
19 Motivation for custom constraints
20 Creating custom composite constraints
21 Creating custom validation constraints

Bean Validation Failure Messages
22 Managing validation failures
23 Local custom validation failure messages
24 Global custom validation failure messages
25 Internationalize failure messages
26 ✓ Challenge
27 ✓ Solution

Advanced Bean Validation Features
28 Bean Validation and RESTful webservices introduction
29 Bean Validation and RESTful webservices implementation
30 Cross-field validation implementation
31 Cross-parameter validation implementation
32 Advanced constraint usage

33 Next steps

Download from DepFile

Download from Turbobit

Download from DepositFiles

Download from Rapidgator