[jboss-user] [JBoss Seam] - Validation Documentation Incomplete
dhinojosa
do-not-reply at jboss.com
Wed Feb 6 13:17:25 EST 2008
anonymous wrote :
| Well, that's a decent first cut, but in practice it might be more elegant to use custom constraints instead of the ones built into Hibernate Validator:
|
| | public class Location {
| | private String country;
| | private String zip;
| |
| | @NotNull
| | @Country
| | public String getCountry() { return country; }
| | public void setCountry(String c) { country = c; }
| |
| | @NotNull
| | @ZipCode
| | public String getZip() { return zip; }
| | public void setZip(String z) { zip = z; }
| | }
| |
|
Hey, that's great, but doesn't show how or give a reference on where to find out more.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127123#4127123
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127123
More information about the jboss-user
mailing list