Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Question on persistence of Enumeration data types using CDO
Question on persistence of Enumeration data types using CDO [message #588] Fri, 14 October 2005 22:03 Go to next message
Eclipse UserFriend
Originally posted by: tvalence1.cox.net

Greetings Eike,



I am trying to use CDO to persist an object that has an attribute that is an
Enumeration data type.

I've attached a detailed stack trace and the generated code for the datatype
in question for reference.



Unfortuntately, when I try to persist the object to a CDO resource, I
receive the following exception:



[DEBUG] common.connector-channel-1:
[DEBUG]
common.connector-channel-1: ------------------------------------------------------------ ---------
[DEBUG] common.connector-channel-1: Transmitting request CommitTransaction
[DEBUG] common.connector-channel-1: commitObjectsToDetach()
[DEBUG] common.connector-channel-1: commitObjectsToAttach(30 objects)
[DEBUG] common.connector-channel-1: Transmitting object to attach: oid=1:-1,
cid=10, isContent=true
....
[DEBUG] common.connector-channel-1: Transmitting object to attach: oid=1:-3,
cid=5, isContent=false
[DEBUG] common.connector-channel-1: Transmitting attributeSegment
mymodel.Process
[DEBUG] common.connector-channel-1: Transmitting attribute description
[DEBUG] common.connector-channel-1: Transmitting attribute priority
[DEBUG] common.connector-channel-1: Transmitting attribute validFrom
[DEBUG] common.connector-channel-1: Transmitting attribute validTo
[DEBUG] common.connector-channel-1: Transmitting attribute timeEstimation
[DEBUG] common.connector-channel-1: Transmitting attribute durationUnit

[DEBUG] com.mycompany.myapp.correlator.InterpreterCorrelator: The datatype
'DurationUnit' is not a valid classifier



Am I missing something in the genmodel settings for CDO that are required to
properly handle the serialization of enumerated data types?



Any assistance would be greatly appreciated.



Thanks!

= Ted Valencia






Re: Question on persistence of Enumeration data types using CDO [message #603 is a reply to message #588] Sat, 15 October 2005 06:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

Hi Ted,

I remember that a similar issue has been fixed some time ago.
Please try to update the sources from HEAD.
Does it do the trick?

Cheers
/Eike

p.s. As soon as EMFT Bugzilla is available for CDO, I will start
tracking issues and proper releases, so that it will be
easier to detect the need of CVS updates...



TVal schrieb:
> Greetings Eike,
>
>
>
> I am trying to use CDO to persist an object that has an attribute that is an
> Enumeration data type.
>
> I've attached a detailed stack trace and the generated code for the datatype
> in question for reference.
>
>
>
> Unfortuntately, when I try to persist the object to a CDO resource, I
> receive the following exception:
>
>
>
> [DEBUG] common.connector-channel-1:
> [DEBUG]
> common.connector-channel-1: ------------------------------------------------------------ ---------
> [DEBUG] common.connector-channel-1: Transmitting request CommitTransaction
> [DEBUG] common.connector-channel-1: commitObjectsToDetach()
> [DEBUG] common.connector-channel-1: commitObjectsToAttach(30 objects)
> [DEBUG] common.connector-channel-1: Transmitting object to attach: oid=1:-1,
> cid=10, isContent=true
> ....
> [DEBUG] common.connector-channel-1: Transmitting object to attach: oid=1:-3,
> cid=5, isContent=false
> [DEBUG] common.connector-channel-1: Transmitting attributeSegment
> mymodel.Process
> [DEBUG] common.connector-channel-1: Transmitting attribute description
> [DEBUG] common.connector-channel-1: Transmitting attribute priority
> [DEBUG] common.connector-channel-1: Transmitting attribute validFrom
> [DEBUG] common.connector-channel-1: Transmitting attribute validTo
> [DEBUG] common.connector-channel-1: Transmitting attribute timeEstimation
> [DEBUG] common.connector-channel-1: Transmitting attribute durationUnit
>
> [DEBUG] com.mycompany.myapp.correlator.InterpreterCorrelator: The datatype
> 'DurationUnit' is not a valid classifier
>
>
>
> Am I missing something in the genmodel settings for CDO that are required to
> properly handle the serialization of enumerated data types?
>
>
>
> Any assistance would be greatly appreciated.
>
>
>
> Thanks!
>
> = Ted Valencia
>
>
>
>
>
>
Re: Question on persistence of Enumeration data types using CDO [message #616 is a reply to message #603] Mon, 17 October 2005 22:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tvalence1.cox.net

Hi Eike,

The code update fixed the issue.

Thanks!
- Ted



"Eike Stepper" <stepper@sympedia.de> wrote in message
news:diq7j5$bou$1@news.eclipse.org...
> Hi Ted,
>
> I remember that a similar issue has been fixed some time ago.
> Please try to update the sources from HEAD.
> Does it do the trick?
>
> Cheers
> /Eike
>
> p.s. As soon as EMFT Bugzilla is available for CDO, I will start
> tracking issues and proper releases, so that it will be
> easier to detect the need of CVS updates...
>
>
>
> TVal schrieb:
>> Greetings Eike,
>>
>>
>>
>> I am trying to use CDO to persist an object that has an attribute that is
>> an Enumeration data type.
>>
>> I've attached a detailed stack trace and the generated code for the
>> datatype in question for reference.
>>
>>
>>
>> Unfortuntately, when I try to persist the object to a CDO resource, I
>> receive the following exception:
>>
>>
>>
>> [DEBUG] common.connector-channel-1:
>> [DEBUG]
>> common.connector-channel-1: ------------------------------------------------------------ ---------
>> [DEBUG] common.connector-channel-1: Transmitting request
>> CommitTransaction
>> [DEBUG] common.connector-channel-1: commitObjectsToDetach()
>> [DEBUG] common.connector-channel-1: commitObjectsToAttach(30 objects)
>> [DEBUG] common.connector-channel-1: Transmitting object to attach:
>> oid=1:-1, cid=10, isContent=true
>> ....
>> [DEBUG] common.connector-channel-1: Transmitting object to attach:
>> oid=1:-3, cid=5, isContent=false
>> [DEBUG] common.connector-channel-1: Transmitting attributeSegment
>> mymodel.Process
>> [DEBUG] common.connector-channel-1: Transmitting attribute description
>> [DEBUG] common.connector-channel-1: Transmitting attribute priority
>> [DEBUG] common.connector-channel-1: Transmitting attribute validFrom
>> [DEBUG] common.connector-channel-1: Transmitting attribute validTo
>> [DEBUG] common.connector-channel-1: Transmitting attribute timeEstimation
>> [DEBUG] common.connector-channel-1: Transmitting attribute durationUnit
>>
>> [DEBUG] com.mycompany.myapp.correlator.InterpreterCorrelator: The
>> datatype 'DurationUnit' is not a valid classifier
>>
>>
>>
>> Am I missing something in the genmodel settings for CDO that are required
>> to properly handle the serialization of enumerated data types?
>>
>>
>>
>> Any assistance would be greatly appreciated.
>>
>>
>>
>> Thanks!
>>
>> = Ted Valencia
>>
>>
>>
>>
>>
Re: Question on persistence of Enumeration data types using CDO [message #627 is a reply to message #616] Tue, 18 October 2005 06:18 Go to previous message
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

TVal schrieb:
> Hi Eike,
>
> The code update fixed the issue.

Great ;-)

Sorry for the inconvenience and happy persisting...

Cheers
/Eike
Re: Question on persistence of Enumeration data types using CDO [message #560982 is a reply to message #588] Sat, 15 October 2005 06:31 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Ted,

I remember that a similar issue has been fixed some time ago.
Please try to update the sources from HEAD.
Does it do the trick?

Cheers
/Eike

p.s. As soon as EMFT Bugzilla is available for CDO, I will start
tracking issues and proper releases, so that it will be
easier to detect the need of CVS updates...



TVal schrieb:
> Greetings Eike,
>
>
>
> I am trying to use CDO to persist an object that has an attribute that is an
> Enumeration data type.
>
> I've attached a detailed stack trace and the generated code for the datatype
> in question for reference.
>
>
>
> Unfortuntately, when I try to persist the object to a CDO resource, I
> receive the following exception:
>
>
>
> [DEBUG] common.connector-channel-1:
> [DEBUG]
> common.connector-channel-1: ------------------------------------------------------------ ---------
> [DEBUG] common.connector-channel-1: Transmitting request CommitTransaction
> [DEBUG] common.connector-channel-1: commitObjectsToDetach()
> [DEBUG] common.connector-channel-1: commitObjectsToAttach(30 objects)
> [DEBUG] common.connector-channel-1: Transmitting object to attach: oid=1:-1,
> cid=10, isContent=true
> ....
> [DEBUG] common.connector-channel-1: Transmitting object to attach: oid=1:-3,
> cid=5, isContent=false
> [DEBUG] common.connector-channel-1: Transmitting attributeSegment
> mymodel.Process
> [DEBUG] common.connector-channel-1: Transmitting attribute description
> [DEBUG] common.connector-channel-1: Transmitting attribute priority
> [DEBUG] common.connector-channel-1: Transmitting attribute validFrom
> [DEBUG] common.connector-channel-1: Transmitting attribute validTo
> [DEBUG] common.connector-channel-1: Transmitting attribute timeEstimation
> [DEBUG] common.connector-channel-1: Transmitting attribute durationUnit
>
> [DEBUG] com.mycompany.myapp.correlator.InterpreterCorrelator: The datatype
> 'DurationUnit' is not a valid classifier
>
>
>
> Am I missing something in the genmodel settings for CDO that are required to
> properly handle the serialization of enumerated data types?
>
>
>
> Any assistance would be greatly appreciated.
>
>
>
> Thanks!
>
> = Ted Valencia
>
>
>
>
>
>


Re: Question on persistence of Enumeration data types using CDO [message #560996 is a reply to message #603] Mon, 17 October 2005 22:36 Go to previous message
Eclipse UserFriend
Originally posted by: tvalence1.cox.net

Hi Eike,

The code update fixed the issue.

Thanks!
- Ted



"Eike Stepper" <stepper@sympedia.de> wrote in message
news:diq7j5$bou$1@news.eclipse.org...
> Hi Ted,
>
> I remember that a similar issue has been fixed some time ago.
> Please try to update the sources from HEAD.
> Does it do the trick?
>
> Cheers
> /Eike
>
> p.s. As soon as EMFT Bugzilla is available for CDO, I will start
> tracking issues and proper releases, so that it will be
> easier to detect the need of CVS updates...
>
>
>
> TVal schrieb:
>> Greetings Eike,
>>
>>
>>
>> I am trying to use CDO to persist an object that has an attribute that is
>> an Enumeration data type.
>>
>> I've attached a detailed stack trace and the generated code for the
>> datatype in question for reference.
>>
>>
>>
>> Unfortuntately, when I try to persist the object to a CDO resource, I
>> receive the following exception:
>>
>>
>>
>> [DEBUG] common.connector-channel-1:
>> [DEBUG]
>> common.connector-channel-1: ------------------------------------------------------------ ---------
>> [DEBUG] common.connector-channel-1: Transmitting request
>> CommitTransaction
>> [DEBUG] common.connector-channel-1: commitObjectsToDetach()
>> [DEBUG] common.connector-channel-1: commitObjectsToAttach(30 objects)
>> [DEBUG] common.connector-channel-1: Transmitting object to attach:
>> oid=1:-1, cid=10, isContent=true
>> ....
>> [DEBUG] common.connector-channel-1: Transmitting object to attach:
>> oid=1:-3, cid=5, isContent=false
>> [DEBUG] common.connector-channel-1: Transmitting attributeSegment
>> mymodel.Process
>> [DEBUG] common.connector-channel-1: Transmitting attribute description
>> [DEBUG] common.connector-channel-1: Transmitting attribute priority
>> [DEBUG] common.connector-channel-1: Transmitting attribute validFrom
>> [DEBUG] common.connector-channel-1: Transmitting attribute validTo
>> [DEBUG] common.connector-channel-1: Transmitting attribute timeEstimation
>> [DEBUG] common.connector-channel-1: Transmitting attribute durationUnit
>>
>> [DEBUG] com.mycompany.myapp.correlator.InterpreterCorrelator: The
>> datatype 'DurationUnit' is not a valid classifier
>>
>>
>>
>> Am I missing something in the genmodel settings for CDO that are required
>> to properly handle the serialization of enumerated data types?
>>
>>
>>
>> Any assistance would be greatly appreciated.
>>
>>
>>
>> Thanks!
>>
>> = Ted Valencia
>>
>>
>>
>>
>>
Re: Question on persistence of Enumeration data types using CDO [message #561016 is a reply to message #616] Tue, 18 October 2005 06:18 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
TVal schrieb:
> Hi Eike,
>
> The code update fixed the issue.

Great ;-)

Sorry for the inconvenience and happy persisting...

Cheers
/Eike


Previous Topic:Question on persistence of Enumeration data types using CDO
Next Topic:Library EXT Example (Live Validation)
Goto Forum:
  


Current Time: Tue Apr 23 16:26:19 GMT 2024

Powered by FUDForum. Page generated in 0.03415 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top