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.
