On 13 Jan 2017, at 13:29, Guillaume Smet
<guillaume.smet(a)gmail.com> wrote:
On Fri, Jan 13, 2017 at 1:01 PM, Gunnar Morling <gunnar(a)hibernate.org
<mailto:gunnar@hibernate.org>> wrote:
Unfortunately, validationAppliesTo() is already taken:
http://beanvalidation.org/latest-draft/spec/#constraintsdefinitionimpleme...
<
http://beanvalidation.org/latest-draft/spec/#constraintsdefinitionimpleme...
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.
Too good to be true :).
That being said, I'm wondering if we could reuse it and just add 2 other values to
ConstraintTarget. All in all, it's the same concept. The default being IMPLICIT is not
too bad either.
Right I think it’s worth exploring.
I still like my group repurposing trick though even if it offenses the clean camp :)