tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Cunha <daniels...@gmail.com>
Subject Re: annotation @Email validation into entity Customer . I get errors from ide
Date Wed, 25 Feb 2015 12:56:53 GMT
Or,

you can update the project to use last tomee version. 2.0.0-SNAPSHOT.
Nops!?

On Wed, Feb 25, 2015 at 9:51 AM, Daniel Cunha <danielsoro@gmail.com> wrote:
> Romain,
>
> this case, isn't possible update bval for 1.1?
> We have the @Email validation in bval 1.1. So.. he only needs change the import.
> https://github.com/apache/bval/blob/bval-11/bval-jsr/src/main/java/org/apache/bval/constraints/Email.java
>
> On Wed, Feb 25, 2015 at 9:41 AM, Romain Manni-Bucau
> <rmannibucau@gmail.com> wrote:
>> More or less yes, depending the hibernate-validator version @Email is
>> backed by few more logic or just a regex:
>> http://grepcode.com/file_/repo1.maven.org/maven2/org.hibernate/hibernate-validator/4.2.0.Final/org/hibernate/validator/constraints/impl/EmailValidator.java/?v=source
>>
>> this source has some comments about the regex the validator uses -
>> which is surely better than mine.
>>
>>
>> Romain Manni-Bucau
>> @rmannibucau
>> http://www.tomitribe.com
>> http://rmannibucau.wordpress.com
>> https://github.com/rmannibucau
>>
>>
>> 2015-02-25 13:30 GMT+01:00 mauro2java2011 <mauro2java2011@gmail.com>:
>>> I can substitute the annotatation @Email with thd annotatiob @Pattern with
>>> regex that you have writed ?
>>>
>>> do you have a link for a simple ecpkanation for understand regex ?
>>>
>>> Tank you .mauro
>>>
>>>
>>>
>>> --
>>> View this message in context: http://tomee-openejb.979440.n4.nabble.com/annotation-Email-validation-into-entity-Customer-I-get-errors-from-ide-tp4673886p4673888.html
>>> Sent from the TomEE Users mailing list archive at Nabble.com.
>
>
>
> --
> Daniel Cunha (soro)



-- 
Daniel Cunha (soro)

Mime
View raw message