Bean validation
Java bean validation (JSR-303) is a Java specification that allows us to express validation constraints on objects via annotations. It provides the APIs to validate and report violations. The hibernate validator is the reference implementation of the bean validation specification. We are going use the hibernate validator for validation. You can see the available bean validation annotation at the following URL: