Created
October 5, 2011 13:18
-
-
Save php-coder/1264400 to your computer and use it in GitHub Desktop.
Constraints list example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Size.List({ | |
@Size(min = COUNTRY_MIN_LENGTH, message = "{value.too-short}"), | |
@Size(max = COUNTRY_MAX_LENGTH, message = "{value.too-long}") | |
}) | |
private String country; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
value.too-long = Value is greater than allowable maximum of {min} characters | |
value.too-short = Value is less than allowable minimum of {max} characters |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment