Custom @ interface and groups check
1. Custom annotation
Extracted from: http://elim.iteye.com/blog/1812584
@ Target ({ElementType.FIELD, ElementType.METHOD})
@ Retention (RetentionPolicy.RUNTIME)
@ Constraint (validatedBy=MinValidator.class)
Public @ interface Min {
Int value () default 0
String message ()
Class [] groups () default {}
Class