tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: annotation @Email validation into entity Customer . I get errors from ide
Date Wed, 25 Feb 2015 12:41:34 GMT
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.

Mime
View raw message