I want to validate the length and pattern of string used in Map<String, String>, as like String:
@Size(max = 45, message = "{validation.name.size.too_long}")
@Pattern(regexp = MessageConstants.VALID_REGEXP, message = MessageConstants.REGEXP_MSG)
How can I do the same validation for Map<String, String> key and value?