I have a custom Annotation constraint , but I want it to be checked only if the other constraint is valid .For example:
@NotNull
private String propertyA;
@Digits
private String propertyB;
if propertyA is null , i don't want "@Digits"on propertyB to be checked.
How can i solve the problem? Thanks.