Frank, I opened JIRA "TUSCANY-512" to track this feature. Thanks, - Ron
----- Original Message ---- From: Frank Budinsky <[EMAIL PROTECTED]> To: [email protected] Sent: Friday, June 30, 2006 10:05:52 AM Subject: Re: XSD2JavaGenerator doesn't generate DocumentRoot class Ron, It looks like in SDO 2.1 there will probably be a standard way to set the root object. Right now, however, there is no "spec recommended" way. If you'd like, we can add another SDOUtil method - SDOUtil.setRootObject(DataGraph dataGraph, DataObject rootObject) - so you don't need to call the implementation-specific (setERootObject) method, which will be removed in the future. Please open a JIRA if you'd like us to do that. Thanks, Frank. Ron Gavlin <[EMAIL PROTECTED]> 06/30/2006 09:34 AM Please respond to [email protected] To [email protected] cc Subject Re: XSD2JavaGenerator doesn't generate DocumentRoot class 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] --------------------------------------------------------------------- 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]
