Is it possible to enable default validation of fields without specifying group? For example, I have the bean:
class User {
@NotEmpty
private String name;
@NotEmpty(groups = UserGroup.ShouldHaveSurName.class)
private String surname;
}
I want the field "name" to be validated in any case - if the group not specified for @Validated annotation in the controller, or if "ShouldHaveSurName" group specified. I believe there was the configuration for this but can't find it.