I have a small requirement of writing standardized, internationalized javax.validation error messages in this format
@NotNull private String name;
@Max(10) private int age;
Then in this case the error message should prop up as
"The field name is not null"
"The field age is not greater than or equal to 10"
How can I achieve this in a more dynamic way instead of hard-coding the message or variable name inside the annotation.