@Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE})
@Retention(value=RUNTIME)
@Repeatable(value=NotNull.List.class)
@Documented
@Constraint(validatedBy={})
public @interface NotNull
The annotated element must not be null
.
Accepts any type.
- Examples (en):
- rest-example, myfaces-codi-demo, mvc-cxf, mvc-cxf-hibernate, deltaspike-fullstack, bean-validation-design-by-contract
- Examples (es):
- myfaces-codi-demo
- Examples (pt):
- myfaces-codi-demo, mvc-cxf-hibernate, deltaspike-fullstack, bean-validation-design-by-contract