...

/

Create Custom Validator

Create Custom Validator

Let’s learn to create a custom validator and use it to validate the properties of the entity object.

We'll cover the following...

Implement ConstraintValidator

The Javax framework provides the ConstraintValidator interface to create custom constraint classes. Suppose we want a Todo object to always have a multi-word title . We’ll need to validate the title ...