Article on using annotation for data constraints

There’s an interesting article on the Sun Java site this week about how to use 1.5 Annotations to enforce data constraints on Java Beans. This is a very neat approach to enforcing rules like max lengths on bean properties.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.