I would like to treat some fields as Optional, if the value is null or blank don't go with the checks of the other annotated constraints. There is some way to achieve it! Reading this tread Java bean validation: Enforce a @Pattern only when the property is not blank don't seems cover my needs. Below an example to explain what I mean:
public class Test {
@Max(value=100) // <--mandatory
private int parA;
@Optional // <-Custom annotation telling "do not check other if null or blank"
@Range(min=10, max=200)
private int parB;
...
}