Top Description Methods
jakarta.validation.valueextraction

public @Interface UnwrapByDefault

extends Annotation
Annotations
@Target:TYPE
@Retention:RUNTIME
@Documented
Static Imports
java.lang.annotation.ElementType.TYPE, .RetentionPolicy.RUNTIME

Marks a ValueExtractor definition so that it is applied automatically when detecting constraints declared on the container type supported by the extractor, causing the constraints to be applied to the container's elements instead of the container.

If needed, this behavior can be changed per constraint using Unwrapping.Skip, causing the constraints to be applied to the container itself:

@SomeConstraint(payload = Unwrapping.Skip.class)
SomeContainerType container;
Author
Guillaume Smet
Since
2.0

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString