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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user