I'm starting with bean validation and I'm needing to do dependent field validation.
Example: I have the fields StartDate and EndDate The dataFin field can not be less than the StartDate.
I know that I can create my own annotation, but I do not know how or if it is possible to use the dataInitial field in the dataFim validator.
I was able to create the validator for the and / / a>