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.


Go to source code

Comments

Popular posts from this blog

Debug Java Stream in Intellij Idea

Creating Efficient Docker Images with Spring Boot 2.3

CRUD Goes Even Easier With JPABuddy