org.hibernate.validator
Annotation Type NotEmpty


@Documented
@ValidatorClass(value=NotEmptyValidator.class)
@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface NotEmpty

Check that a String is not empty (not null and length > 0) or that a Collection (or array) is not empty (not null and length > 0)

Author:
Emmanuel Bernard

Optional Element Summary
 String message
           
 

message

public abstract String message
Default:
"{validator.notEmpty}"