It's used to distinguish between return value and cross-parameter constraints.
Any other name I can think of right now would make up for much
confusion with that option.
2017-01-13 12:22 GMT+01:00 Guillaume Smet <guillaume.smet(a)gmail.com>:
Hi again,
On Fri, Jan 13, 2017 at 12:12 PM, Guillaume Smet <guillaume.smet(a)gmail.com>
wrote:
>
> The drawback I can see is that it adds a new reserved method to the
> @Constraint annotations. To make the migration more smooth, we could make it
> optional and test the returnType of the method before using the result.
After speaking with Gunnar, we would need a "valid" prefix on the name of
the method so something like validationAppliesTo would work:
@Size(3, validationAppliesTo = ANNOTATED_ELEMENT)
@Size(10, validationAppliesTo = WRAPPED_VALUE)
ListOfStrings nicknames;
--
Guillaume
_______________________________________________
beanvalidation-dev mailing list
beanvalidation-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/beanvalidation-dev