@Documented @Inherited @Retention(value=RUNTIME) @Target(value=FIELD) @Constraint(value=RequiredValidator.class) public @interface Required
Constraint
to indicate the annotated component field must
not be null
.
RequiredValidator
validates it.Copyright © 2011-2014 Eiichiro Uchiumi. All Rights Reserved.