play.data.validation
Annotation Type Constraints.Max


@Target(value=FIELD)
@Retention(value=RUNTIME)
@Constraint(validatedBy=Constraints.MaxValidator.class)
public static @interface Constraints.Max

Defines a maximum value for a numeric field.


Required Element Summary
 long value
           
 
Optional Element Summary
 java.lang.Class<?>[] groups
           
 java.lang.String message
           
 java.lang.Class<? extends javax.validation.Payload>[] payload
           
 

Element Detail

value

public abstract long value

message

public abstract java.lang.String message
Default:
"error.max"

groups

public abstract java.lang.Class<?>[] groups
Default:
{}

payload

public abstract java.lang.Class<? extends javax.validation.Payload>[] payload
Default:
{}