Java EE: Bean Validation
2h 21mAdvanced2018-03-07
Authors

Alex Theedom
Enterprise Developer, Published Author, Trainer
Course details
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.
Learning objectives
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)
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.
Learning objectives
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)
Skills covered
Java EEBack-End Web DevelopmentJavaOracleWeb DevelopmentDeep Dive (X:Y)
Concepts
0. Introduction
- 01 - Welcome
- 02 - What you should know
- 03 - Using the exercise files
- 04 - Using the challenges
1. What Is Bean Validation
- 05 - Bean Validation headline features
- 06 - Java EE ecosystem integration
- 07 - Bean Validation implementations
2. Course Project Introduction
- 08 - Course project walk-through
- 09 - How to work with the project
3. 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
4. Applying Hibernate Bean Validation Constraints
- 17 - Hibernate constraints overview
- 18 - Hibernate constraints implementation
5. Designing Custom Constraint Validators
- 19 - Motivation for custom constraints
- 20 - Creating custom composite constraints
- 21 - Creating custom validation constraints
6. 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
7. 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
Conclusion
- 33 - Next steps
Related courses
Related learn paths
- Become a Java EE 7 Developer
- Become a Java Programmer
- Building Your Java Skills
- Getting Started as a Java Developer
- Java Foundations Professional Certificate by JetBrains
- Advance Your Java Skills
- Prepare for the Java SE 8 Programmer (1Z0-808) Certification
- Prepare for the MongoDB Java Developer Associate Certification