@Target(value={METHOD,FIELD}) @Retention(value=RUNTIME) @Constraint(validatedBy=MandatoryValidator.class) public @interface Mandatory
Constraint
for a mandatory field. It is similar to NotNull
but
with an appropriate message
and also considering empty String
s,
Collection
s or Map
s.public abstract String message
Constraint
public abstract Class<?>[] groups
Constraint
public abstract Class<? extends javax.validation.Payload>[] payload
Constraint
Copyright © 2001–2016 mmm-Team. All rights reserved.