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 <[email protected]> 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 <[email protected]>: >> 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)
