I want to apply certain @NotBlank annotations only if the other field is false. In my current project, we must use a sleep mode validator, so there’s no validation of general accessibility + valang to solve this problem.
Since I'm not too fond of creating a few custom annotations to decide what should be easy (bit, bumped, that this is not included in the JSR-303 specification). I was wondering if anyone knows an acceptable way to do this. I found a jar that did this, but it was for sleep mode 3. And because of the changes ...
source
share