play.data.validation
Annotation Type Constraints.Required


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

Defines a field as required.


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

message

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

groups

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

payload

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