xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Libbrecht <p...@activemath.org>
Subject Re: CfP: Apache JAXB Implementation Project
Date Tue, 06 Aug 2002 08:39:11 GMT
But do they solve in any fashion the classical problem of generative 
approach where a change in the Schema/DTD/IDL requires a regeneration of 
the classes and the loss of possibly new code ?


On Lundi, août 5, 2002, at 11:36 , robert burrell donkin wrote:
> i had a quick look at the jaxb spec and it seemed (to me) to use the 
> generative approach. take a schema, generate some value beans and then 
> generate mapping code. the developer can then modify the beans as they 
> wish. i suppose a useful analogy might be a generative data access 
> mapping layers such as jakarta-turbine-torque: the difference being 
> that the value beans are mapping to xml rather than to relational 
> tables,
> this kind of thing can quite easily be built on top of ant. torque uses 
> velocity driven from a custom ant task (texen). (i believe that people 
> have made similar systems work using xslt.)
> there is a component in jakarta-commons called betwixt which takes the 
> alternative reflective approach. it creates dynamic mappings at runtime 
> using reflection. this approach works well with existing object models. 
> jaxb should be better when you want to create an object model from 
> scratch based on a known schema.
> a reflective solution will probably be more java-centric, starting from 
> an existing object model with the xml reflecting that model whereas a 
> generative solution will start from known xml and create an object 
> model based on it. quite possibly a solution falling in the middle is 
> likely to enjoy the failings of both without the distinct advantages of 
> either.

In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org

View raw message