Is it possible to store generated EMF model directly to CDO?

99 Views Asked by At

From the document that I have followed, I understood that every element in EMF model to extend CDOObject. Is this mandatory to extend CDOObject? If yes, then I have an EMF model which is actually developed from other team and don't have permission to extend model class CDOObject. Is there any alternative solution in such case??

1

There are 1 best solutions below

1
On

Using pure EMF-Models with CDO is possible using the CDO Legacy Mode. While this supports models that are not ported to CDO it has some performance implications.

You can activate the legacy mode like this:

CDOUtil.setLegacyModeDefault(true);
CDOTransaction transaction2 = session.openTransaction();   

More information can be found here: https://wiki.eclipse.org/CDO/Legacy_Mode