1. I have an XML schema from which I generate java classes using JAXB.
2. The application I am working on has complex Business Validation rules rules which are not part of XML schema. I would like to custom Bean Validation Annotations - JSR 303 to validate the objects generated from JAXB.
Is it possible to get JAXB to annotate the fields or methods which I need? If yes, can someone give me a nudge in the right direction on how to get this done.
SCJP 1.4, SCWCD 1.4
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler et al, Refactoring: Improving the Design of Existing Code, 1999