k, thanks folks.
My choices are manipulate the code or the english language ;-)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3929009#3929009
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3929009
@Length (min = 1, max = 500, message = "Email address is required and must be
at most 500 characters long.")
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928905#3928905
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=
Can't you do:
@Length (min = 1, max = 500, message = "Email address must be between 1 and 500
characters long.")
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928898#3928898
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=re
It is VERY easy to extend Hibernate Validator and add your own annotations :-)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928892#3928892
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928892
--
Thanks, but I'm not sure that is an ideal solution. Consider the following code
...
@Column(name="EMAIL_ADDRESS")
| @NotNull(message="Email Address is required.")
| @Length(min=1, message="Email Address is required.")
| @Length(max=500, message="Email Address must be less than 500 c
You should be using @Length(min=1)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928780#3928780
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928780
---
This SF.Ne