org.hibernate.validator
Annotation Type Length


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

Apply some length restrictions to the annotated element. It has to be a string

Author:
Gavin King

Optional Element Summary
 int max
           
 String message
           
 int min
           
 

max

public abstract int max
Default:
2147483647

min

public abstract int min
Default:
0

message

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