Learn how to use one of the most useful and important Java EE APIs—Bean Validation and its reference implementation Hibernate Validator—to ensure the data integrity of your Java applications.
- [Alex] Hi, I'm Alex Theedom, and I am passionate about Enterprise Java. It's a powerful and lightweight platform that I've been developing with for over 10 years. No serious Java EE programmer can develop without Bean Validation. It is an essential tool that every developer must have in their toolkit in order to protect your application from rogue and misshapen data that threatens to disable your application. In this course, you'll learn how to ensure the integrity of your application's data as it enters and passes through your application. With the knowledge you gain in this course, you will be equipped to tackle the challenge that every developer faces, how to keep bad data out of the application.
You will learn the entire range of Bean Validation 2.0's built-in constraints, and the additional constraints provided by Hibernate Validator 6.0. You will go on to learn to construct your own constraints in order to satisfy your specific use cases for data integrity checks, how to customize data validation messages, and how to internationalize them into any language. And finally, you will see how Bean Validation integrates with other Java EE technologies, such as JAX-RS, JPA, and JSF. By the end of this course, you can expect to be comfortable implementing and designing your own Bean Validation constraints.
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.
- 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)