Hi,
I'm getting a ClassCastException (see below) when I try to do
myDataObj.getChangeSummary().beginLogging();
I am use EMF to create the objects. I changed the .genmodel file to generate
SDO objects (I changed the genmodel first to create SDO 1.0 objects.
Subsequently, I modified the .genmodel file to generate code that uses the
Tuscany classes). The generated interfaces extend DataObject and their
implementations correctly extend DataObjectImpl. I think the problem lies in
the generated Package file, where getMyDataObj() returns an EClass. If it
would be of any help, I can provide the .genmodel file.
Is it possible at all to generate SDO from an EMF model?
Thanks in advance,
Tom
java.lang.ClassCastException: org.eclipse.emf.ecore.impl.EClassImpl
at
org.apache.tuscany.sdo.impl.DataObjectImpl.getType(DataObjectImpl.java:192)
at
org.apache.tuscany.sdo.util.DataObjectUtil.getChangeSummary(DataObjectUtil.j
ava:688)
at
org.apache.tuscany.sdo.impl.DataObjectImpl.getChangeSummary(DataObjectImpl.j
ava:1314)
....
Environment: EMF 2.2.0, SDO 2.1.0 incubating beta1