Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Import/Export for model migration?
[CDO] Import/Export for model migration? [message #736037] Thu, 13 October 2011 12:30 Go to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
Registered: July 2009
Senior Member
Does anyone have a good process/best-practice for using the import/export functionality of CDO to apply a model migration?
If I export my repository, then the meta-models are also exported. I would need to commit my new meta-model, then re-import, but I guess this will not work...
And, the objects' types are referenced by their full namespace, i.e. if I had made changes to the namespace (e.g. when namespace includes some versioning infos), then the objects would not be mappable to the "new" meta-model...

Would COPE be good for this task? Anyone tried CDO with COPE?
Re: [CDO] Import/Export for model migration? [message #736652 is a reply to message #736037] Fri, 14 October 2011 07:37 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
Registered: July 2009
Senior Member
I guess the import function of the CDO server should be more flexible:
It should be able to override the namespace URIs and their corresponding package units (meta models).

This would allow to import the same model whose meta model has been changed in a binary compatible way.
Of course, this will not work for complex model migrations (no binary compatibility).

Any thoughts?
Re: [CDO] Import/Export for model migration? [message #736689 is a reply to message #736652] Fri, 14 October 2011 08:24 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 14.10.2011 09:37, schrieb Erdal Karaca:
> I guess the import function of the CDO server should be more flexible:
> It should be able to override the namespace URIs and their corresponding package units (meta models).
>
> This would allow to import the same model whose meta model has been changed in a binary compatible way.
> Of course, this will not work for complex model migrations (no binary compatibility).
>
> Any thoughts?
Sounds like a usable enhancement. But we'll need community contribution to make that happen anytime soon.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: [CDO] Import/Export for model migration? [message #736804 is a reply to message #736689] Fri, 14 October 2011 10:54 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
Registered: July 2009
Senior Member
Eike Stepper wrote on Fri, 14 October 2011 04:24
Sounds like a usable enhancement. But we'll need community contribution to make that happen anytime soon.



Done: https://bugs.eclipse.org/bugs/show_bug.cgi?id=360940

I will maybe work on this as I need to migrate my model soon...
Re: [CDO] Import/Export for model migration? [message #736822 is a reply to message #736804] Fri, 14 October 2011 11:09 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 14.10.2011 12:54, schrieb Erdal Karaca:
> Eike Stepper wrote on Fri, 14 October 2011 04:24
>> Sounds like a usable enhancement. But we'll need community contribution to make that happen anytime soon.
>
>
>
> Done: https://bugs.eclipse.org/bugs/show_bug.cgi?id=360940
>
> I will maybe work on this as I need to migrate my model soon...
Great! Count on me when youneed help ;-)

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: [CDO] Import/Export for model migration? [message #758022 is a reply to message #736037] Mon, 21 November 2011 19:31 Go to previous message
Alexandre Borgoltz is currently offline Alexandre BorgoltzFriend
Messages: 31
Registered: July 2009
Location: France
Member
Quote:
Anyone tried CDO with COPE?

I have tried Edapt but it is not compatible with CDO - I am waiting for a confirmation about that though (see thread 262295 entitled "[Edapt][CDO] EDAPT with CDO ").

AFAIK Edapt only accepts XML file serialized models. Hence not compatible with CDO.

HTH!

--
Alexandre
Previous Topic:Large XMLResource file
Next Topic:Static package registration not populating same registry accessed by EMF deserialization code
Goto Forum:
  


Current Time: Fri Apr 26 17:26:42 GMT 2024

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

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

Back to the top