You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Kevin Williams (JIRA)" <tu...@ws.apache.org> on 2006/04/06 22:55:24 UTC

[jira] Created: (TUSCANY-153) ChangeSummary on root data object not supported

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  
    Reporter: Kevin Williams


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


Re: [jira] Commented: (TUSCANY-153) ChangeSummary on root data object not supported

Posted by Frank Budinsky <fr...@ca.ibm.com>.
Brent,

The JavaDoc for the -noNotification generator option says it all:

 *     -noNotification
 *         This option eliminates all change notification overhead in the 
generated classes. Changes to
 *         DataObjects generated using this option cannot be recorded, and 
consequently the classes cannot
 *         be used with an SDO ChangeSummary or DataGraph.

You should definitely not be using it.

Thanks,
Frank.

"Brent Daniel" <br...@gmail.com> wrote on 07/06/2006 07:48:05 AM:

> 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) <tu...@ws.apache.org> 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 ...
> >
> > das.impl.OrderImpl@fa7e74 (ID: <unset>, Product: null, Quantity: 
> 5, Customer_ID: <unset>)
> > das.impl.CustomerImpl@183f74d (ID: 5, lastName: null, address: null)
> > das.impl.OrderImpl@80f4cb (ID: 10, Product: null, Quantity: 
> <unset>, Customer_ID: <unset>)
> > org.apache.tuscany.sdo.impl.DynamicDataObjectImpl@1a679b7 (eClass:
> org.apache.tuscany.sdo.impl.ClassImpl@4741d6 (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: tuscany-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: [jira] Commented: (TUSCANY-153) ChangeSummary on root data object not supported

Posted by Brent Daniel <br...@gmail.com>.
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) <tu...@ws.apache.org> 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 ...
>
> das.impl.OrderImpl@fa7e74 (ID: <unset>, Product: null, Quantity: 5, Customer_ID: <unset>)
> das.impl.CustomerImpl@183f74d (ID: 5, lastName: null, address: null)
> das.impl.OrderImpl@80f4cb (ID: 10, Product: null, Quantity: <unset>, Customer_ID: <unset>)
> org.apache.tuscany.sdo.impl.DynamicDataObjectImpl@1a679b7 (eClass: org.apache.tuscany.sdo.impl.ClassImpl@4741d6 (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: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: [jira] Commented: (TUSCANY-153) ChangeSummary on root data object not supported

Posted by Robbie Minshall <my...@gmail.com>.
The agenda here is up to you.

I will be more than happy to experiement with, and write some test cases for
the ChangeSummary on a DataObject code when it is available.  The sooner it
is available the sooner I will be able to make some progress on this, the
more issues fixed the better for everyone - so whenever you feel it is a
good time for a new drop on this JIRA works for me.

Robbie



On 9/11/06, kelvin goodson <ke...@gmail.com> wrote:
>
> Robbie,
>   I have a fix for this exception, but I still have some work to do before
> the code is stable.  I can create an updated patch to handle removing this
> exception.  I won't do that until you ask,  as  I'm hoping I can fix the
> other issues first.
> Regards, Kelvin.
>
> On 06/09/06, Robbie Minshall (JIRA) <tu...@ws.apache.org> wrote:
> >
> >     [
> >
> http://issues.apache.org/jira/browse/TUSCANY-153?page=comments#action_12432955
> ]
> >
> > Robbie Minshall commented on TUSCANY-153:
> > -----------------------------------------
> >
> > LOADING SIMPLE CHANGE SUMMARY
> >
> > When I attempt to load the simple change summary contained within the
> fix
> > I get an exception when loading the XML.  I will look into the causes
> > tomorrow when I have more time but if you have any insights that would
> be
> > great.
> >
> >         public static final String CHANGESUMMARY_SIMPLE_XSD =
> > "/simpleWithChangeSummary.xsd";
> >         public static final String CHANGESUMMARY_SIMPLE_XML =
> > "/simplechangesummary.xml";
> > . . . .
> >                         // define simple Type
> >                         XSDHelper.INSTANCE.define
> > (getClass().getResourceAsStream(
> >                                         CHANGESUMMARY_SIMPLE_XSD),
> null);
> >
> >                         // get a DataObject
> >                         DataObject simple = XMLHelper.INSTANCE.load(
> >
> >
> getClass().getResourceAsStream(CHANGESUMMARY_SIMPLE_XML))
> >                                         .getRootObject();
> >
> > --->
> > java.lang.ExceptionInInitializerError
> >         at
> > org.apache.tuscany.sdo.model.impl.ModelFactoryImpl.createDocumentRoot(
> > ModelFactoryImpl.java:313)
> >         at org.apache.tuscany.sdo.model.impl.ModelFactoryImpl.createGen(
> > ModelFactoryImpl.java:106)
> >         at org.apache.tuscany.sdo.model.impl.ModelFactoryImpl.create(
> > ModelFactoryImpl.java:120)
> >         at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.createObject(
> > XMLHelperImpl.java:784)
> >         at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObject(
> > XMLHandler.java:1938)
> >         at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createDocumentRoot(
> > XMLHandler.java:1214)
> >         at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType(
> > XMLHandler.java:1152)
> >         at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(
> > XMLHandler.java:1234)
> >         at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(
> > XMLHandler.java:872)
> >         at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(
> > XMLHandler.java:854)
> >         at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(
> > XMLHandler.java:626)
> >         at
> >
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement
> (Unknown
> > Source)
> >         at
> >
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement
> (Unknown
> > Source)
> >         at
> >
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook
> (Unknown
> > Source)
> >         at
> >
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
> (Unknown
> > Source)
> >         at
> >
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument
> (Unknown
> > Source)
> >         at
> > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> (Unknown
> > Source)
> >         at
> > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> (Unknown
> > Source)
> >         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse
> (Unknown
> > Source)
> >         at
> > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse
> (Unknown
> > Source)
> >         at javax.xml.parsers.SAXParser.parse(Unknown Source)
> >         at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(
> > XMLLoadImpl.java:264)
> >         at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(
> > XMLResourceImpl.java:666)
> >         at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.load(
> > XMLResourceImpl.java:634)
> >         at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(
> > XMLDocumentImpl.java:235)
> >         at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(
> > XMLDocumentImpl.java:213)
> >         at org.apache.tuscany.sdo.helper.XMLHelperImpl.load(
> > XMLHelperImpl.java:72)
> >         at org.apache.tuscany.sdo.helper.XMLHelperImpl.load(
> > XMLHelperImpl.java:66)
> >         at
> >
> org.apache.tuscany.sdo.test.DataObjectChangeSummaryTestCase.testObtainChangeSummaryFromSimple
> > (DataObjectChangeSummaryTestCase.java:174)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
> >         at java.lang.reflect.Method.invoke(Unknown Source)
> >         at junit.framework.TestCase.runTest(TestCase.java:154)
> >         at junit.framework.TestCase.runBare(TestCase.java:127)
> >         at junit.framework.TestResult$1.protect(TestResult.java:106)
> >         at junit.framework.TestResult.runProtected(TestResult.java:124)
> >         at junit.framework.TestResult.run(TestResult.java:109)
> >         at junit.framework.TestCase.run(TestCase.java:118)
> >         at
> > org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(
> > JUnit3TestReference.java:128)
> >         at org.eclipse.jdt.internal.junit.runner.TestExecution.run(
> > TestExecution.java:38)
> >         at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
> > (RemoteTestRunner.java:460)
> >         at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
> > (RemoteTestRunner.java:673)
> >         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(
> > RemoteTestRunner.java:386)
> >         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
> > RemoteTestRunner.java:196)
> > Caused by: java.lang.ClassCastException:
> > org.apache.tuscany.sdo.impl.AttributeImpl
> >         at
> >
> org.apache.tuscany.sdo.model.impl.ModelPackageImpl.getBaseDataGraphType_ChangeSummary
> > (ModelPackageImpl.java:1488)
> >         at org.apache.tuscany.sdo.model.impl.ModelPackageImpl$Literals
> > .<clinit>(ModelPackageImpl.java:3666)
> >         ... 45 more
> >
> >
> >
> > > ChangeSummary on root data object not supported
> > > -----------------------------------------------
> > >
> > >                 Key: TUSCANY-153
> > >                 URL: http://issues.apache.org/jira/browse/TUSCANY-153
> > >             Project: Tuscany
> > >          Issue Type: Bug
> > >          Components: Java SDO Implementation
> > >    Affects Versions: Java-Mx
> > >            Reporter: Kevin Williams
> > >             Fix For: Java-Mx
> > >
> > >         Attachments: do_cs_2.patch, 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: tuscany-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> >
> >
>
>
> --
> Best Regards
> Kelvin Goodson
>
>


-- 
* * * Charlie * * *
Check out some pics of little Charlie at
http://www.flickr.com/photos/83388211@N00/sets/

* * * Addresss * * *
1914 Overland Drive
Chapel Hill
NC 27517

* * * Number * * *
919-225-1553

Re: [jira] Commented: (TUSCANY-153) ChangeSummary on root data object not supported

Posted by kelvin goodson <ke...@gmail.com>.
Robbie,
  I have a fix for this exception, but I still have some work to do before
the code is stable.  I can create an updated patch to handle removing this
exception.  I won't do that until you ask,  as  I'm hoping I can fix the
other issues first.
Regards, Kelvin.

On 06/09/06, Robbie Minshall (JIRA) <tu...@ws.apache.org> wrote:
>
>     [
> http://issues.apache.org/jira/browse/TUSCANY-153?page=comments#action_12432955]
>
> Robbie Minshall commented on TUSCANY-153:
> -----------------------------------------
>
> LOADING SIMPLE CHANGE SUMMARY
>
> When I attempt to load the simple change summary contained within the fix
> I get an exception when loading the XML.  I will look into the causes
> tomorrow when I have more time but if you have any insights that would be
> great.
>
>         public static final String CHANGESUMMARY_SIMPLE_XSD =
> "/simpleWithChangeSummary.xsd";
>         public static final String CHANGESUMMARY_SIMPLE_XML =
> "/simplechangesummary.xml";
> . . . .
>                         // define simple Type
>                         XSDHelper.INSTANCE.define
> (getClass().getResourceAsStream(
>                                         CHANGESUMMARY_SIMPLE_XSD), null);
>
>                         // get a DataObject
>                         DataObject simple = XMLHelper.INSTANCE.load(
>
>                                         getClass().getResourceAsStream(CHANGESUMMARY_SIMPLE_XML))
>                                         .getRootObject();
>
> --->
> java.lang.ExceptionInInitializerError
>         at
> org.apache.tuscany.sdo.model.impl.ModelFactoryImpl.createDocumentRoot(
> ModelFactoryImpl.java:313)
>         at org.apache.tuscany.sdo.model.impl.ModelFactoryImpl.createGen(
> ModelFactoryImpl.java:106)
>         at org.apache.tuscany.sdo.model.impl.ModelFactoryImpl.create(
> ModelFactoryImpl.java:120)
>         at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.createObject(
> XMLHelperImpl.java:784)
>         at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObject(
> XMLHandler.java:1938)
>         at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createDocumentRoot(
> XMLHandler.java:1214)
>         at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType(
> XMLHandler.java:1152)
>         at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(
> XMLHandler.java:1234)
>         at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(
> XMLHandler.java:872)
>         at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(
> XMLHandler.java:854)
>         at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(
> XMLHandler.java:626)
>         at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> Source)
>         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
> Source)
>         at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
> Source)
>         at javax.xml.parsers.SAXParser.parse(Unknown Source)
>         at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(
> XMLLoadImpl.java:264)
>         at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(
> XMLResourceImpl.java:666)
>         at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.load(
> XMLResourceImpl.java:634)
>         at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(
> XMLDocumentImpl.java:235)
>         at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(
> XMLDocumentImpl.java:213)
>         at org.apache.tuscany.sdo.helper.XMLHelperImpl.load(
> XMLHelperImpl.java:72)
>         at org.apache.tuscany.sdo.helper.XMLHelperImpl.load(
> XMLHelperImpl.java:66)
>         at
> org.apache.tuscany.sdo.test.DataObjectChangeSummaryTestCase.testObtainChangeSummaryFromSimple
> (DataObjectChangeSummaryTestCase.java:174)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at junit.framework.TestCase.runTest(TestCase.java:154)
>         at junit.framework.TestCase.runBare(TestCase.java:127)
>         at junit.framework.TestResult$1.protect(TestResult.java:106)
>         at junit.framework.TestResult.runProtected(TestResult.java:124)
>         at junit.framework.TestResult.run(TestResult.java:109)
>         at junit.framework.TestCase.run(TestCase.java:118)
>         at
> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(
> JUnit3TestReference.java:128)
>         at org.eclipse.jdt.internal.junit.runner.TestExecution.run(
> TestExecution.java:38)
>         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
> (RemoteTestRunner.java:460)
>         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
> (RemoteTestRunner.java:673)
>         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(
> RemoteTestRunner.java:386)
>         at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
> RemoteTestRunner.java:196)
> Caused by: java.lang.ClassCastException:
> org.apache.tuscany.sdo.impl.AttributeImpl
>         at
> org.apache.tuscany.sdo.model.impl.ModelPackageImpl.getBaseDataGraphType_ChangeSummary
> (ModelPackageImpl.java:1488)
>         at org.apache.tuscany.sdo.model.impl.ModelPackageImpl$Literals
> .<clinit>(ModelPackageImpl.java:3666)
>         ... 45 more
>
>
>
> > ChangeSummary on root data object not supported
> > -----------------------------------------------
> >
> >                 Key: TUSCANY-153
> >                 URL: http://issues.apache.org/jira/browse/TUSCANY-153
> >             Project: Tuscany
> >          Issue Type: Bug
> >          Components: Java SDO Implementation
> >    Affects Versions: Java-Mx
> >            Reporter: Kevin Williams
> >             Fix For: Java-Mx
> >
> >         Attachments: do_cs_2.patch, 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: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>


-- 
Best Regards
Kelvin Goodson

[jira] Updated: (TUSCANY-153) ChangeSummary on root data object not supported

Posted by "Brent Daniel (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-153?page=all ]

Brent Daniel updated TUSCANY-153:
---------------------------------

    Attachment: tuscany153.jar

I'm attaching a copy of the test case that was discussed on the dev list. 

> 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-153) ChangeSummary on root data object not supported

Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Sebastien Delfino updated TUSCANY-153:
-------------------------------------------

    Patch Info: [Patch Available]

> ChangeSummary on root data object not supported
> -----------------------------------------------
>
>                 Key: TUSCANY-153
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-153
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>    Affects Versions: Java-SCA-Mx
>            Reporter: Kevin Williams
>             Fix For: Java-SDO-Mx
>
>         Attachments: do_cs_2.patch, do_cs_6.patch, 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.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-153) ChangeSummary on root data object not supported

Posted by "Robbie Minshall (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-153?page=comments#action_12432954 ] 
            
Robbie Minshall commented on TUSCANY-153:
-----------------------------------------

COMPANY WITH CHANGE SUMMARY PROPERTY

Rather than using a new type to wrap an existing type with a changeSummary I have simply added a changeSummary property into the sequence of an existing Type.  Perhaps I did this incorrectly 

I have put the xsd and the xml below and then some questions below that.  

* * * XSD * * * 

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema 
	xmlns:company="changeSummary_company.xsd" 
	xmlns:sdo="commonj.sdo" 
	xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	targetNamespace="changeSummary_company.xsd"> 
	 
    <xsd:import namespace="commonj.sdo" schemaLocation="sdoModel.xsd"/>
    
    <xsd:element name="company" type="company:CompanyTypeCS"/>
    
    <xsd:complexType name="CompanyTypeCS">
	    <xsd:sequence>
		    <xsd:element maxOccurs="unbounded" name="departments" type="company:DepartmentType"/>
	   		<xsd:element name="changes" type="sdo:ChangeSummaryType"/>
	    </xsd:sequence>
	      	     	    
	    <xsd:attribute name="name" type="xsd:string"/>
	    <xsd:attribute name="employeeOfTheMonth" type="xsd:string"/>	  
	      	    
    </xsd:complexType>
    <xsd:complexType name="DepartmentType">
	    <xsd:sequence>
    		<xsd:element maxOccurs="unbounded" name="employees" type="company:EmployeeType"/>
	    </xsd:sequence>
	    <xsd:attribute name="name" type="xsd:string"/>	   
		<xsd:attribute name="location" type="xsd:string"/>
    	<xsd:attribute name="number" type="xsd:int"/>		
    </xsd:complexType>
    <xsd:complexType name="EmployeeType">
	    <xsd:attribute name="name" type="xsd:string"/>
	    <xsd:attribute name="SN" type="xsd:ID"/>
	    <xsd:attribute name="manager" type="xsd:boolean"/>
    </xsd:complexType>       
 </xsd:schema>


* * * XML * * * 
<?xml version="1.0" encoding="ASCII"?>
<company:company 
	xmlns:company="changeSummary_company.xsd" 
	employeeOfTheMonth="E0001"
    name="ACME">

  <departments location="NY" name="Advanced Technologies" number="123">
    <employees name="John Jones" SN="E0001"/>
    <employees name="Jane Doe" SN="E0003"/>
    <employees manager="true" name="F Varone" SN="E0004"/>
  </departments>

    <changes logging="true">
    </changes>

</company:company>

* * * Questions and issues * * * 

1.  Type for changes property should be ChangeSummaryType but was Object.  I obtained the name of the  type using DataObject.getProperty("changes").getType().getName()

junit.framework.ComparisonFailure: Asserting that the type for the changes property is ChangeSummaryType  expected:<ChangeSummaryType> but was:<Object>

2. Obtaining ChangeSummary.
DataObject.get("changes") returns a null String
DataObject.getChangeSummary returns null where it should return a ChangeSummary 
	
3. Obtaining Sequence
I am unable to get the sequence ( which is making me think the xml may be incorrect ).  .getSequence() is returning null. 


> ChangeSummary on root data object not supported
> -----------------------------------------------
>
>                 Key: TUSCANY-153
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-153
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>    Affects Versions: Java-Mx
>            Reporter: Kevin Williams
>             Fix For: Java-Mx
>
>         Attachments: do_cs_2.patch, 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-153) ChangeSummary on root data object not supported

Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-153?page=all ]

Jean-Sebastien Delfino updated TUSCANY-153:
-------------------------------------------

    Fix Version: Java-Mx
        Version: Java-Mx

> 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

>
> 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


[jira] Updated: (TUSCANY-153) ChangeSummary on root data object not supported

Posted by "Kevin Williams (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-153?page=all ]

Kevin Williams updated TUSCANY-153:
-----------------------------------

    Priority: Blocker  (was: Major)

This is blocking TUSCANY-154

> 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
>     Reporter: Kevin Williams
>     Priority: Blocker

>
> 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


[jira] Updated: (TUSCANY-153) ChangeSummary on root data object not supported

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-153?page=all ]

Kelvin Goodson updated TUSCANY-153:
-----------------------------------

    Attachment: do_cs_6.patch

Here's an update to this for experimentation/review. Sorry for the delay, I have been diverted. Note that the serialization of ChangeSummaries on DataObjects is not implemented,  and there is some work to be done in the generators to treat properties of ChangeSummaryType as special cases.   

> ChangeSummary on root data object not supported
> -----------------------------------------------
>
>                 Key: TUSCANY-153
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-153
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>    Affects Versions: Java-Mx
>            Reporter: Kevin Williams
>             Fix For: Java-Mx
>
>         Attachments: do_cs_2.patch, do_cs_6.patch, 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-153) ChangeSummary on root data object not supported

Posted by "Kevin Williams (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-153?page=all ]

Kevin Williams updated TUSCANY-153:
-----------------------------------

    Priority: Major  (was: Blocker)

Thanks Frank, We will take a look at your proposed workaround.

> 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
>     Reporter: Kevin Williams

>
> 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


[jira] Commented: (TUSCANY-153) ChangeSummary on root data object not supported

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
    [ 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 ...

das.impl.OrderImpl@fa7e74 (ID: <unset>, Product: null, Quantity: 5, Customer_ID: <unset>)
das.impl.CustomerImpl@183f74d (ID: 5, lastName: null, address: null)
das.impl.OrderImpl@80f4cb (ID: 10, Product: null, Quantity: <unset>, Customer_ID: <unset>)
org.apache.tuscany.sdo.impl.DynamicDataObjectImpl@1a679b7 (eClass: org.apache.tuscany.sdo.impl.ClassImpl@4741d6 (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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-153) ChangeSummary on root data object not supported

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-153?page=comments#action_12422675 ] 
            
Kelvin Goodson commented on TUSCANY-153:
----------------------------------------

By the way,  in the patch I just sent,  I asked the patch creation tool to pay respect to the fact that I had deleted ...../model/impl/ChangeSummaryTypeImpl.java,  but I can't see an artefact in the patch to that effect,  so if not deleted this file will show lots of compiler errors.

> ChangeSummary on root data object not supported
> -----------------------------------------------
>
>                 Key: TUSCANY-153
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-153
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>    Affects Versions: Java-Mx
>            Reporter: Kevin Williams
>             Fix For: Java-Mx
>
>         Attachments: do_cs_2.patch, 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-153) ChangeSummary on root data object not supported

Posted by "Kevin Williams (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-153?page=comments#action_12417871 ] 

Kevin Williams commented on TUSCANY-153:
----------------------------------------

Wondering if there is an outlook for this JIRA.  Is this targeted for M2?

> 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

>
> 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-153) ChangeSummary on root data object not supported

Posted by "Frank Budinsky (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-153?page=comments#action_12456651 ] 
            
Frank Budinsky commented on TUSCANY-153:
----------------------------------------

Serialization of ChangeSummary on DataObjects is not implemented yet, but the rest has been committed in revision 483757. 

> ChangeSummary on root data object not supported
> -----------------------------------------------
>
>                 Key: TUSCANY-153
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-153
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>    Affects Versions: Java-Mx
>            Reporter: Kevin Williams
>             Fix For: Java-Mx
>
>         Attachments: do_cs_2.patch, do_cs_6.patch, 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-153) ChangeSummary on root data object not supported

Posted by "Brent Daniel (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-153?page=comments#action_12377870 ] 

Brent Daniel commented on TUSCANY-153:
--------------------------------------

I was creating the new Type with the same URI as the generated Types. When I change the URI to something unique, this seems to work. 

> 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
>     Reporter: Kevin Williams

>
> 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


[jira] Updated: (TUSCANY-153) ChangeSummary on root data object not supported

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-153?page=all ]

Kelvin Goodson updated TUSCANY-153:
-----------------------------------

    Attachment: do_cs_2.patch

Frank, here's the first drop of this function we spoke about.

> ChangeSummary on root data object not supported
> -----------------------------------------------
>
>                 Key: TUSCANY-153
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-153
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>    Affects Versions: Java-Mx
>            Reporter: Kevin Williams
>             Fix For: Java-Mx
>
>         Attachments: do_cs_2.patch, 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-153) ChangeSummary on root data object not supported

Posted by "Frank Budinsky (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-153?page=comments#action_12377622 ] 

Frank Budinsky commented on TUSCANY-153:
----------------------------------------

Brent,

DataGraph.createRootObject(Type) delegates to whatever package/factory the type is in, so this should work. I suspect that your dynamic type wasn't created properly. Try it again using the new SDOUtil Type creation methods, and let me know if you still have problems.

Frank.


> 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
>     Reporter: Kevin Williams

>
> 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


[jira] Commented: (TUSCANY-153) ChangeSummary on root data object not supported

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-153?page=comments#action_12418494 ] 

Kelvin Goodson commented on TUSCANY-153:
----------------------------------------

I've got this partially working,  but it's not advancing to quickly at the moment, as other things have taken priority.  I understand it may turn out not to be a blocker.  M2 is feasible if I can give it sufficient priority.

> 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

>
> 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-153) ChangeSummary on root data object not supported

Posted by "Robbie Minshall (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-153?page=comments#action_12432955 ] 
            
Robbie Minshall commented on TUSCANY-153:
-----------------------------------------

LOADING SIMPLE CHANGE SUMMARY 

When I attempt to load the simple change summary contained within the fix I get an exception when loading the XML.  I will look into the causes tomorrow when I have more time but if you have any insights that would be great. 

	public static final String CHANGESUMMARY_SIMPLE_XSD = "/simpleWithChangeSummary.xsd";
	public static final String CHANGESUMMARY_SIMPLE_XML = "/simplechangesummary.xml";
. . . .
			// define simple Type
			XSDHelper.INSTANCE.define(getClass().getResourceAsStream(
					CHANGESUMMARY_SIMPLE_XSD), null);

			// get a DataObject
			DataObject simple = XMLHelper.INSTANCE.load(
					getClass().getResourceAsStream(CHANGESUMMARY_SIMPLE_XML))
					.getRootObject();

--->
java.lang.ExceptionInInitializerError
	at org.apache.tuscany.sdo.model.impl.ModelFactoryImpl.createDocumentRoot(ModelFactoryImpl.java:313)
	at org.apache.tuscany.sdo.model.impl.ModelFactoryImpl.createGen(ModelFactoryImpl.java:106)
	at org.apache.tuscany.sdo.model.impl.ModelFactoryImpl.create(ModelFactoryImpl.java:120)
	at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.createObject(XMLHelperImpl.java:784)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObject(XMLHandler.java:1938)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createDocumentRoot(XMLHandler.java:1214)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType(XMLHandler.java:1152)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XMLHandler.java:1234)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.processElement(XMLHandler.java:872)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:854)
	at org.eclipse.emf.ecore.xmi.impl.XMLHandler.startElement(XMLHandler.java:626)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
	at javax.xml.parsers.SAXParser.parse(Unknown Source)
	at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:264)
	at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:666)
	at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.load(XMLResourceImpl.java:634)
	at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(XMLDocumentImpl.java:235)
	at org.apache.tuscany.sdo.helper.XMLDocumentImpl.load(XMLDocumentImpl.java:213)
	at org.apache.tuscany.sdo.helper.XMLHelperImpl.load(XMLHelperImpl.java:72)
	at org.apache.tuscany.sdo.helper.XMLHelperImpl.load(XMLHelperImpl.java:66)
	at org.apache.tuscany.sdo.test.DataObjectChangeSummaryTestCase.testObtainChangeSummaryFromSimple(DataObjectChangeSummaryTestCase.java:174)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at junit.framework.TestCase.runTest(TestCase.java:154)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: java.lang.ClassCastException: org.apache.tuscany.sdo.impl.AttributeImpl
	at org.apache.tuscany.sdo.model.impl.ModelPackageImpl.getBaseDataGraphType_ChangeSummary(ModelPackageImpl.java:1488)
	at org.apache.tuscany.sdo.model.impl.ModelPackageImpl$Literals.<clinit>(ModelPackageImpl.java:3666)
	... 45 more



> ChangeSummary on root data object not supported
> -----------------------------------------------
>
>                 Key: TUSCANY-153
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-153
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>    Affects Versions: Java-Mx
>            Reporter: Kevin Williams
>             Fix For: Java-Mx
>
>         Attachments: do_cs_2.patch, 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Resolved: (TUSCANY-153) ChangeSummary on root data object not supported

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kelvin Goodson resolved TUSCANY-153.
------------------------------------

    Resolution: Fixed

> ChangeSummary on root data object not supported
> -----------------------------------------------
>
>                 Key: TUSCANY-153
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-153
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>    Affects Versions: Java-SCA-Future
>            Reporter: Kevin Williams
>             Fix For: Java-SDO-Mx
>
>         Attachments: do_cs_2.patch, do_cs_6.patch, 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.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-153) ChangeSummary on root data object not supported

Posted by "Robbie Minshall (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-153?page=comments#action_12432874 ] 
            
Robbie Minshall commented on TUSCANY-153:
-----------------------------------------

FYI.  All very striaght forward but in order to apply the patch I had to perform the following 

1. new files not versioned.  
-> add files by hand prior to applying patch :

touch sdo/impl/src/test/java/org/apache/tuscany/sdo/test/ChangeSummaryOnDataObjectTestCase.java	
touch sdo/impl/src/test/resources/datagraph.xsd	
touch sdo/impl/src/test/resources/sdoJava.xsd	
touch sdo/impl/src/test/resources/sdoModel.xsd	
touch sdo/impl/src/test/resources/sdoXML.xsd	
touch sdo/impl/src/test/resources/simpleWithChangeSummary.xsd

2. Adjust fuzz factor to 7 to get matches of recently changed files

3. DataObjectImpl could not match patch due to import reordering.
-> add imports by hand after patch applied

import org.apache.tuscany.sdo.SDOFactory;
import org.apache.tuscany.sdo.impl.ClassImpl;
import org.apache.tuscany.sdo.impl.DataObjectImpl;

4. Delete ChangeSummaryTypeImpl as kelvin mentioned

> ChangeSummary on root data object not supported
> -----------------------------------------------
>
>                 Key: TUSCANY-153
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-153
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>    Affects Versions: Java-Mx
>            Reporter: Kevin Williams
>             Fix For: Java-Mx
>
>         Attachments: do_cs_2.patch, 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-153) ChangeSummary on root data object not supported

Posted by "Frank Budinsky (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-153?page=all ]

Frank Budinsky updated TUSCANY-153:
-----------------------------------


Hi Kevin,

You can't make this unimplemented feature a blocking problem, because unless someone steps up to implement this immediately (which will take several weeks anyway), there's no way we can implement it soon.

I think you need a better workaround. For example, I think  you should be able to wrap the root object in a datagraph transparently, and since the DataObject.getChangeSummary() method is (now) implemented to work properly, it shouldn't matter to the client that the ChangeSummary is actually on a behind-the-scenes DataGraph instead of on the root object itself.

ChangeSummary-type properties directly on the DataObject are probably not going to be working for at least a couple of months.

Frank.

> 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
>     Reporter: Kevin Williams
>     Priority: Blocker

>
> 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


[jira] Updated: (TUSCANY-153) ChangeSummary on root data object not supported

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kelvin Goodson updated TUSCANY-153:
-----------------------------------

    Patch Info:   (was: [Patch Available])

The attachments do_cs_2.patch, do_cs_6.patch and tuscany153.jar are used/redundant,  so I am clearing the patch available flag.

I believe that if the sum of the work here + that done in TUSCANY-1082 + that to be done in TUSCANY-1021 covers all the change summary on data object work then this JIRA can be marked resolved.

> ChangeSummary on root data object not supported
> -----------------------------------------------
>
>                 Key: TUSCANY-153
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-153
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>    Affects Versions: Java-SCA-Mx
>            Reporter: Kevin Williams
>             Fix For: Java-SDO-Mx
>
>         Attachments: do_cs_2.patch, do_cs_6.patch, 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.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-153) ChangeSummary on root data object not supported

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kelvin Goodson updated TUSCANY-153:
-----------------------------------

    Fix Version/s:     (was: Java-SDO-Mx)
                   Java-SDO-M3

> ChangeSummary on root data object not supported
> -----------------------------------------------
>
>                 Key: TUSCANY-153
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-153
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>    Affects Versions: Java-SCA-Future
>            Reporter: Kevin Williams
>             Fix For: Java-SDO-M3
>
>         Attachments: do_cs_2.patch, do_cs_6.patch, 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.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-153) ChangeSummary on root data object not supported

Posted by "Brent Daniel (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-153?page=comments#action_12377619 ] 

Brent Daniel commented on TUSCANY-153:
--------------------------------------

Frank, 

  Our scenario is that we need to create a new Type that has reference properties to each Type in a set of generated types. This new type would correspond to the root object of the DataGraph. However, when we try to use DataGraph.createRootObject() with this Type, the create delegates to the generated package, which can't find our dynamic Type. When I brought this up, Steve suggested that we use SDO without a DataGraph. Is there a better way to accomplish this?

> 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
>     Reporter: Kevin Williams

>
> 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