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 09:56:40 GMT
Hi

yes this is not something standard,

you can surely replace it by a regex:
@Pattern("^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$")
or sthg like that



Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2015-02-25 10:43 GMT+01:00 mauro2java2011 <mauro2java2011@gmail.com>:
> e tried to run the following example of petstore
>
> https://github.com/stephanrauh/agoncal-petstore-JSE7-ajax
>
> into the Entity Customer i have:
>
> import org.hibernate.validator.constraints.Email;
>
>  @Email
>     private String email;
>
> from my ide netbeans, it signal error on line
>  @Email
>     private String email;
> and into import org.hibernate.validator.constraints.Email;
>
> i have tried to use the project woith tomee1 profile setted but it get
> errors .
>
>
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/annotation-Email-validation-into-entity-Customer-I-get-errors-from-ide-tp4673886.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Mime
View raw message