org.apache.cayenne.annotations.validators
Annotation Type Length


@Retention(value=RUNTIME)
@Target(value={FIELD,PARAMETER,METHOD})
public @interface Length

Apply some length restrictions to the annotated element.


Optional Element Summary
 int max
           
 java.lang.String message
           
 int min
           
 

max

public abstract int max
Default:
2147483647

min

public abstract int min
Default:
0

message

public abstract java.lang.String message
Default:
"cayenne-length-message"


Copyright © 2007. All Rights Reserved.