Kelvin, It looks like the difference between your generated code and mine is that mine is being generated with the "noNotificationRequired" option. I'm not sure why our test cases started using this for generated classes, but it seems to work for all normal cases, but not for this one. Regardless, we should be able to make progress without this issue blocking us given that we can generate the models with notification turned on.
Thanks, Brent On 7/6/06, Kelvin Goodson (JIRA) <[email protected]> wrote:
[ http://issues.apache.org/jira/browse/TUSCANY-153?page=comments#action_12419452 ] Kelvin Goodson commented on TUSCANY-153: ---------------------------------------- When I run XSD2JavaGenerator against the test.xsd in the supplied jar I get very different generated code from that found in the jar, e.g. CustomerImpl's setID method in the jar is ... public void setID(int newID) { id = newID; } and my generated code has ... public void setID(int newID) { int oldID = id; id = newID; boolean oldIDESet = idESet; idESet = true; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DasPackageImpl.CUSTOMER__ID, oldID, id, !oldIDESet)); } running the test against the new generated code gives ... [EMAIL PROTECTED] (ID: <unset>, Product: null, Quantity: 5, Customer_ID: <unset>) [EMAIL PROTECTED] (ID: 5, lastName: null, address: null) [EMAIL PROTECTED] (ID: 10, Product: null, Quantity: <unset>, Customer_ID: <unset>) [EMAIL PROTECTED] (eClass: [EMAIL PROTECTED] (name: DataGraphRoot) (instanceClassName: null) (abstract: false, interface: false)) > ChangeSummary on root data object not supported > ----------------------------------------------- > > Key: TUSCANY-153 > URL: http://issues.apache.org/jira/browse/TUSCANY-153 > Project: Tuscany > Type: Bug > Components: Java SDO Implementation > Versions: Java-Mx > Reporter: Kevin Williams > Fix For: Java-Mx > Attachments: tuscany153.jar > > The RDB DAS intends to produce data graphs without using a DataGraph instance and this requires us to attach a change history to the root DataObject. It seems that this capability is not yet implemented. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- 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]
