@NotNull
@Pattern(regexp="[[:Alpha:]]+", message="Only Alphabetic chars allowed")
protected String name;
This only allowes aaaa’s as input, e.g. trying to set the string to “apple” dosent work. But setting the string to “aaaaaa” work. I only want to allow alphabetic chars.
You could use: