You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by David Salter <da...@me.com> on 2013/05/09 22:27:34 UTC
Bean Validation in TomEE
Hi,
I've just been reading the details about Bean Validation at http://tomee.apache.org/examples-trunk/bean-validation-design-by-contract/README.html
This page says that to use Bean Validation, you need to add the BeanValidationAppendixInterceptor by editing the conf/system.properties file
I've found that Bean Validation seems to work without having to specify this property.
Is the page wrong, or is this interceptor specified elsewhere in TomEE.
I'm currently using the Web Profile 1.5.2 version of TomEE.
Thanks.
Dave.
Re: Bean Validation in TomEE
Posted by David Salter <da...@me.com>.
Thanks. I think I was having a moment ;)
On 9 May 2013, at 21:36, Romain Manni-Bucau <rm...@gmail.com> wrote:
> yep
>
> that's why the sample is called 'design by contract' ;)
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
>
>
>
> 2013/5/9 David Salter <da...@me.com>
>
>> Ah, that makes sense.
>>
>> You mean you only need to add the interceptor for method validation and
>> not for property validation.
>>
>> Dave.
>>
>> On 9 May 2013, at 21:31, Romain Manni-Bucau <rm...@gmail.com> wrote:
>>
>>> Hi
>>>
>>> the page is right
>>>
>>> bean validation = method validation for you?
>>>
>>> *Romain Manni-Bucau*
>>> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
>>> *Blog: **http://rmannibucau.wordpress.com/*<
>> http://rmannibucau.wordpress.com/>
>>> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
>>> *Github: https://github.com/rmannibucau*
>>>
>>>
>>>
>>> 2013/5/9 David Salter <da...@me.com>
>>>
>>>> Hi,
>>>>
>>>> I've just been reading the details about Bean Validation at
>>>>
>> http://tomee.apache.org/examples-trunk/bean-validation-design-by-contract/README.html
>>>>
>>>> This page says that to use Bean Validation, you need to add the
>>>> BeanValidationAppendixInterceptor by editing the conf/system.properties
>> file
>>>>
>>>> I've found that Bean Validation seems to work without having to specify
>>>> this property.
>>>>
>>>> Is the page wrong, or is this interceptor specified elsewhere in TomEE.
>>>>
>>>> I'm currently using the Web Profile 1.5.2 version of TomEE.
>>>>
>>>> Thanks.
>>>>
>>>> Dave.
>>>>
>>>>
>>
>>
Re: Bean Validation in TomEE
Posted by Romain Manni-Bucau <rm...@gmail.com>.
yep
that's why the sample is called 'design by contract' ;)
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/5/9 David Salter <da...@me.com>
> Ah, that makes sense.
>
> You mean you only need to add the interceptor for method validation and
> not for property validation.
>
> Dave.
>
> On 9 May 2013, at 21:31, Romain Manni-Bucau <rm...@gmail.com> wrote:
>
> > Hi
> >
> > the page is right
> >
> > bean validation = method validation for you?
> >
> > *Romain Manni-Bucau*
> > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> > *Blog: **http://rmannibucau.wordpress.com/*<
> http://rmannibucau.wordpress.com/>
> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> > *Github: https://github.com/rmannibucau*
> >
> >
> >
> > 2013/5/9 David Salter <da...@me.com>
> >
> >> Hi,
> >>
> >> I've just been reading the details about Bean Validation at
> >>
> http://tomee.apache.org/examples-trunk/bean-validation-design-by-contract/README.html
> >>
> >> This page says that to use Bean Validation, you need to add the
> >> BeanValidationAppendixInterceptor by editing the conf/system.properties
> file
> >>
> >> I've found that Bean Validation seems to work without having to specify
> >> this property.
> >>
> >> Is the page wrong, or is this interceptor specified elsewhere in TomEE.
> >>
> >> I'm currently using the Web Profile 1.5.2 version of TomEE.
> >>
> >> Thanks.
> >>
> >> Dave.
> >>
> >>
>
>
Re: Bean Validation in TomEE
Posted by David Salter <da...@me.com>.
Ah, that makes sense.
You mean you only need to add the interceptor for method validation and not for property validation.
Dave.
On 9 May 2013, at 21:31, Romain Manni-Bucau <rm...@gmail.com> wrote:
> Hi
>
> the page is right
>
> bean validation = method validation for you?
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
>
>
>
> 2013/5/9 David Salter <da...@me.com>
>
>> Hi,
>>
>> I've just been reading the details about Bean Validation at
>> http://tomee.apache.org/examples-trunk/bean-validation-design-by-contract/README.html
>>
>> This page says that to use Bean Validation, you need to add the
>> BeanValidationAppendixInterceptor by editing the conf/system.properties file
>>
>> I've found that Bean Validation seems to work without having to specify
>> this property.
>>
>> Is the page wrong, or is this interceptor specified elsewhere in TomEE.
>>
>> I'm currently using the Web Profile 1.5.2 version of TomEE.
>>
>> Thanks.
>>
>> Dave.
>>
>>
Re: Bean Validation in TomEE
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi
the page is right
bean validation = method validation for you?
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/5/9 David Salter <da...@me.com>
> Hi,
>
> I've just been reading the details about Bean Validation at
> http://tomee.apache.org/examples-trunk/bean-validation-design-by-contract/README.html
>
> This page says that to use Bean Validation, you need to add the
> BeanValidationAppendixInterceptor by editing the conf/system.properties file
>
> I've found that Bean Validation seems to work without having to specify
> this property.
>
> Is the page wrong, or is this interceptor specified elsewhere in TomEE.
>
> I'm currently using the Web Profile 1.5.2 version of TomEE.
>
> Thanks.
>
> Dave.
>
>