org.hibernate.validation.constraints
Annotation Type Length
@Documented
@Constraint(validatedBy=LengthValidator.class)
@Target(value={METHOD,FIELD,TYPE})
@Retention(value=RUNTIME)
public @interface Length
Validate that the string is between min and max included
- Author:
- Emmanuel Bernard
min
public abstract int min
- Default:
- 0
max
public abstract int max
- Default:
- 2147483647
message
public abstract java.lang.String message
- Default:
- "{org.hibernate.validation.constraints.Length.message}"
groups
public abstract java.lang.Class<?>[] groups
- Default:
- {}
Copyright © 2007-2009. All Rights Reserved.