hi guys, i have a field that have two validation annotations
Code:
@NotEmpty
@Length(min=3,max=100)
String firstName;
i am just curious to know how hibernate is specifying the order of which validation annotation to be executed first, and if it's possible to custom that ?
the reason i am asking is that if i left that field empty sometimes the first validation message displayed is for not empty and other times if i left it empty i get the validation message for the length annotation.
thanks in advance.