[EN] OpenXava: Custom Bean Validation annotation

Опубликовано: 01 Август 2026
на канале: OpenXava
452
4

In this 21th lesson you'll learn how to create your custom Bean Validation annotation.
The techniques in the previous section are very useful for many validations. Nevertheless, sometimes you will face some validations that are very generic and you will want to reuse them over and over again. In this case to define your own Bean Validation annotation can be a good option. Defining a Bean Validation is more verbose but usage and reuse is simple; just adding an annotation to your property or class.

🔎You can see more about the lesson here:
https://openxava.org/OpenXavaDoc/docs...

🔎You can access the full course here:
https://www.openxava.org/OpenXavaDoc/...

For any problem with the lesson ask in our forum:
https://sourceforge.net/p/openxava/di...

Don't forget to subscribe and leave us your comment!