javax.validation
Annotation Type ReportAsSingleViolation


@Target(value=ANNOTATION_TYPE)
@Retention(value=RUNTIME)
public @interface ReportAsSingleViolation

A constraint annotation hosting this annotation will return the composed annotation error report if any of the composing annotations fail. The error reports of each individual composing constraint are ignored.

Note: Evaluation of composed constraints stops on the first validation error in case the composing constraint is annotated with @ReportAsSingleViolation.

Author:
Emmanuel Bernard



Copyright © 2007-2013. All Rights Reserved.