Yes, I see. I was just curious whether someone would find that useful.
After all this is something, which could be easily implemented by BV
providers on top of the spec. So it's probably something which we
could add to the spec in a later revision, should there be a common
demand.
--Gunnar
2011/12/8 Emmanuel Bernard <emmanuel(a)hibernate.org>:
On 8 déc. 2011, at 17:54, Emmanuel Bernard wrote:
>
> On 7 déc. 2011, at 22:32, Gunnar Morling wrote:
>
>>>> An additional idea would be some option to apply a getter's>>
constraints also as method parameter constraints on the corresponding>> setter. So
if method validation for that bean is enabled, illegal>> values couldn't be set
at all. Would that be useful?>> Global setting or local setting?
>>
>> Haven't thought that far :) Probably both would make sense. Globally
>> via the configuration API, locally via an annotation, for instance.
>
> I'm personally not a big fan. I'm afraid of noisy constraints
I mean noisy annotations
_______________________________________________
beanvalidation-dev mailing list
beanvalidation-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/beanvalidation-dev