Hi Sean,

The answer to question #1 is that it's not currently possible but the next 
version of SDO (SDO 3.0) is planning to address this. With SDO 3, you will 
be able to simply unmarshal JAXB objects (POJOs) and then work with them 
in a SDO data graph, etc. The SDO API will provide a way for users to 
"effectively cast" between static POJOs and DataObjects, where the 
implementation can either support it using proxies, bytecode injection, or 
possibly other ways.

For question #2, I believe it should be easy enough to do, if somebody 
(e.g., you :-) is willing to do the work. Basically, a new javajet 
template will need to be plugged into the generator to optioanlly generate 
what you want.

Frank.

Sean Jiang <[EMAIL PROTECTED]> wrote on 01/17/2008 10:41:14 AM:

> I have some questions regarding XSD to Java SDO. 
> 
> 1. Can Tuscany Java SDO have light-weight implementation, such as 
> static JAXB binding? In lots of scenarios, only static XML binding 
> is needed. Can Tuscany SDO support JAXB XML binding? 
> 
> 2. Currently Tuscany SDO uses EMF implementation. It generates 
> interfaces and implementation classes from the XSD for each types. 
> When it's integrated with Spring framework and uses dependency 
> injection, you'll need manually create the bean definition file even
> though the classes are generated from XSD. If the XSD2JavaGenerator 
> can also generate the SDO Spring bean definition file, it would be 
great.
> 
> 
> Thanks,
> Sean
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to