Makes sense. Indeed, the "dummy" DocumentRoot object was quite inconvenient to work with. I often use XMLHelper to load a DataObject that I want to serve as the root object in my data graph. Without a "setRootObject()" method, what is the "recommended" way to attach this XMLHelper-loaded DataObject as the root object of a DataGraph? I used to use the EMF APIs to accomplish this type of task. - Ron
----- Original Message ---- From: Frank Budinsky <[EMAIL PROTECTED]> To: [email protected] Sent: Thursday, June 29, 2006 4:44:53 PM Subject: Re: XSD2JavaGenerator doesn't generate DocumentRoot class The DocumentRoot is not needed. DocumentRoot is an EMF concept, so in SDO 2 we don't expose it to clients. You also can't set the root object in a DataGraph using standard SDO APIs. You can currently only set it by calling DataGraph.createRootObject(). SDO 2.1 is going to clarify the DataGraph API further, so you might want to keep your eye on the next round of spec changes. Frank. Ron Gavlin <[EMAIL PROTECTED]> wrote on 06/29/2006 03:40:26 PM: > Greetings, > > I am attempting to migrate my application from EMF/SDO 1.0 to > Tuscany SDO 2.0. I noticed that the Tuscany code generator is not > generating a DocumentRoot class for my schema. My application > serializes/de-serializes DataGraphs across tiers. Currently, when > building a DataGraph, we create a DocumentRoot, set is as the root > dataobject on the datagraph, set a global element instance on the > DocumentRoot, and then pass the DataGraph over the wire. Is the > "dummy" DocumentRoot no longer used/needed/recommended? > > Thanks in advance for your assistance. > > - Ron Gavlin > > --------------------------------------------------------------------- > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
