The following table lists and describes the supported Bean Validation annotations. Note that with Application Server, you can use Bean Validation from JSF and CDI.
Package | Annotation |
---|---|
javax.validation | @Constraint |
@GroupSequence | |
@OverridesAttribute | |
@OverridesAttribute.List | |
@ReportAsSingleViolation | |
@Valid | |
javax.validation.constraints | @AssertFalse |
@AssertFalse.List | |
@AssertTrue | |
@AssertTrue.List | |
@DecimalMax | |
@DecimalMax.List | |
@DecimalMin | |
@DecimalMin.List | |
@Digits | |
@Digits.List | |
@Past | |
@Pattern.List | |
@Future | |
@Future.List | |
@Max | |
@Max.List | |
@Min | |
@Min.List | |
@Size | |
@Size.List | |
@NotNull | |
@NotNull.List | |
@Null | |
@Null.List | |
@Pattern | |
@Pattern.List |
For Bean Validation annotations, see the Bean Validation specification documents.
The following table describes the definable range for the annotations of Bean Validation.
Item No. | Linkage target | javax.validation package | javax.validation.constraintspackage | Supported version |
---|---|---|---|---|
1 | JSF linkage | Class on the class path | Class that specifies @ManagedBean | 09-00 |
2 | CDI linkage user application | Class on the class path | JavaBeans class# | 09-50 |