Java Bean IBAN Validation - Creating custom constraint annotation

Although Bean Validation has plenty of handy built-in constraints, such as to make sure if a field is following a specific regex or even if a date is in the past or future, it is certain that soon or later you will need a specific constraint that is not covered by the standard annotations. Definition of ConstraintValidator Definition of Constraint Custom constraints are at the heart of JSR 303 Bean Validation flexibility.