I have a simple class that has one of its properties as a String array. As per this document, using @Valid on an array, collection etc. will recursively validate each elemen
Another thing worth mentioning is the introduction of type annotation in Java 8 which lets you annotate parameterized type
private List<@MyPattern String> defaultAppAdminRoles;
It's not yet in the bean-validation standard (surely in next version) but already available in hibernate-validator 5.2.1. Blog entry here for further information.