| Hi,
 Is there a way I can set the order and priority of constraints for a single property?
 For example, I have two defined constraints for the following property
 
 @NotEmpty(message = "Not Empty message")
 @Size(min = 8, message = "Less than minimum message")
 private String phoneNumber;
 
 I need it to check the size ONLY IF the NotEmpty constraint passes successfully.
 Cause now if the feild is left empty, the two messages will appear!
 
 I know that I can solve this through custom constraints, but is there a way this can be done through annotation?
 
 
 |