[jboss-user] [EJB 3.0] - Validation annotations
lightbulb432
do-not-reply at jboss.com
Thu Dec 14 00:45:57 EST 2006
Should @NotNull or should @NotEmpty be used for strings that you want to make sure the user enters a value for?
Is either the same as saying @Length(min=1)?
With all the validation annotations, I know you can have them on the entity class. However, I tried putting them on the getter methods on the session bean interfaces (for methods on the bean that are bound to form fields), but it doesn't seem to do anything.
Can you have these annotations on the session bean at all? (I imagine it would be possible because that's where you'd want to validate what the user is entering, right?)
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993697#3993697
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993697
More information about the jboss-user
mailing list