There is two different types of XML descriptors in Bean Validation. META-INF/validation.xml is a global descriptor which configures things such as the message interpolator to be used etc. Besides that, it references one or more constraint mapping files which describe the constraints to be applied. You can work with one such mapping file for all your entities or split it up just as you want, but you don't have to create a separate mapping descriptor per entity.
Hth,
--Gunnar
_________________ Visit my blog at http://musingsofaprogrammingaddict.blogspot.com/
|