Currently there is no standard way in Java to add validity constraints to Java classes. This is in contrast to other languages like XML in which (using XML Schema) relatively rich constraints may be specified. With the advent of annotations (JSR 175) in J2SE 5.0 a convenient mechanism now exists to allow such constraints to be specified in the Java meta model. This article explores in Public bookmarkswith annotationsjavavalidation