Annotation Interface Validating


@Qualifier @Retention(RUNTIME) @Target({FIELD,PARAMETER,METHOD}) public @interface Validating
CDI qualifier annotation that selects the validating ModelMapper bean.

Inject a ModelMapper qualified with @Validating to obtain a mapper that automatically validates the mapped destination object using Bean Validation before returning it. Any constraint violations cause a DomainInvariantViolationException to be thrown.

Applicable to fields, parameters, and methods.

See Also: