|
Hi Hardy,
Yes, you're right. The first option would be the less invasive option, which I might consider. However, I like the second approach:
@Size(min=3, max=10)
@UnwrapValidationValue
UIInput<String> name
This would save a lot of boilerplate code and still allow re-usage of the existing constraints. About the annotation inside the ParameterizedType (supported in Java 8), that may not be too intuitive for developers, but I'd like to consider that as an alternative option.
|