Documentation
Examples
Tutorials
JAR files
Leaks
Errata
/validator/Min.java
/validator/Min.java
package shared; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import org.hibernate.validator.ValidatorClass; @ValidatorClass(MinValidator.class) @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface Min { public double value() default Double.MIN_VALUE; String message() default "cannot be less than {value}"; }
Contact the author