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 #560968] Fri, 14 October 2005 22:03
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






Previous Topic:OCL Question
Next Topic:Question on persistence of Enumeration data types using CDO
Goto Forum:
  


Current Time: Fri Apr 26 00:45:42 GMT 2024

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

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

Back to the top