When you notice that you're writing the same kind of validation rules on a number of entity objects, it's a sign that you probably could benefit by refactoring that validation logic into a reusable, parameter-driven validation rule bean.
This article gives a straightforward example of How to Write a Date Range Validation Rule.
10:08:27 AM
|