[bv-dev] Constructor validation

Gunnar Morling gunnar.morling at googlemail.com
Thu Dec 8 15:28:43 EST 2011


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 at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/beanvalidation-dev



More information about the beanvalidation-dev mailing list