Friday, September 14, 2012

SpringMVC Validator: @NotEquals for Numbers

Here is a validator I whipped up for any number that is rejected only for the numbers specified in the annotation.  In retrospect maybe a different name would have been more appropriate since not equals seems to insinuate string type of behavior, but I'm over it.

No comments:

Post a Comment