Jason T. Greene wrote:
Adrian wrote:
> On Tue, 2007-07-24 at 13:28 -0500, Jason T. Greene wrote:
>> As to compatibility on schema updates, if you change the schema in a
>> backwards compatible way its not a problem.
>
> You mean like changing the schema namespace from j2ee to javaee. ;-)
Yeah, for that you would have to either regenerate classes, or
alternatively change the annotations on all classes that refer to it.
If you want something more dynamic, the Sun implementation does allow
you to write your own "AnnotationReader", but this is not in the spec.
The ESB project has some code that pulls annotations to from an external
xml file using a custom annotation reader:
http://wiki.jboss.org/wiki/Wiki.jsp?page=JAXBIntroductions
--
Jason T. Greene
Lead, POJO Cache
JBoss, a division of Red Hat