I want to create an annotation from several, such as @JsonUnwrapped and @Valid from javax.validation.
@JsonUnwrapped
@Valid
@JacksonAnnotationsInside
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ComplexUnwrapped {
}
Here's how I use:
@ComplexUnwrapped
TestParams testParams;
But validation doesn't work. Please tell me what else needs to be done, or poke into the documentation, I don't know how to Google and find (