I once came across a validation framework for java, where you wrote one method that protected the integrity of the data-type and any CRUD operations on that data-type automa
Here's a huge list of Java Validation Libraries / Frameworks - http://java-source.net/open-source/validation