Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » migrate instances to newer metamodel
migrate instances to newer metamodel [message #488434] Mon, 28 September 2009 16:07 Go to next message
Daniel is currently offline DanielFriend
Messages: 34
Registered: July 2009
Member
Hi,

Is there a "best practice" to migrate model instances if the metamodel
(ecore) has changed?

I've heard about edapt/cope but I don't know if it is already usable.

Otherwise I somehow have to keep multiple versions of the plugin with
the generated code to be able to load every instance with its respective
metamodel. (I want to compare the models later with emf compare)
(Suggestions to this approach are also welcome.)

Thanks for your help

Daniel
Re: migrate instances to newer metamodel [message #488446 is a reply to message #488434] Mon, 28 September 2009 17:06 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------000003030605020308060508
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Daniel,

Comments below.

Daniel wrote:
> Hi,
>
> Is there a "best practice" to migrate model instances if the metamodel
> (ecore) has changed?
Make sure you make only binary compatible changes and you need to do no
work at all.
>
> I've heard about edapt/cope but I don't know if it is already usable.
I think it's still starting up.
>
> Otherwise I somehow have to keep multiple versions of the plugin with
> the generated code to be able to load every instance with its
> respective metamodel. (I want to compare the models later with emf
> compare)
> (Suggestions to this approach are also welcome.)
Have a look at
<http://wiki.eclipse.org/EMF/Recipes#Recipe:_Data_Migration>

http://wiki.eclipse.org/EMF/Recipes#Recipe:_Data_Migration

>
> Thanks for your help
>
> Daniel

--------------000003030605020308060508
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Daniel,<br>
<br>
Comments below.<br>
<br>
Daniel wrote:
<blockquote cite="mid:h9qn03$ojr$1@build.eclipse.org" type="cite">Hi,
<br>
<br>
Is there a "best practice" to migrate model instances if the metamodel
(ecore) has changed?
<br>
</blockquote>
Make sure you make only binary compatible changes and you need to do no
work at all.<br>
<blockquote cite="mid:h9qn03$ojr$1@build.eclipse.org" type="cite"><br>
I've heard about edapt/cope but I don't know if it is already usable.
<br>
</blockquote>
I think it's still starting up.<br>
<blockquote cite="mid:h9qn03$ojr$1@build.eclipse.org" type="cite"><br>
Otherwise I somehow have to keep multiple versions of the plugin with
the generated code to be able to load every instance with its
respective


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: migrate instances to newer metamodel [message #488825 is a reply to message #488434] Wed, 30 September 2009 12:30 Go to previous message
Dirk Hoffmann is currently offline Dirk HoffmannFriend
Messages: 163
Registered: July 2009
Senior Member
Daniel schrieb:
> Hi,
>
> Is there a "best practice" to migrate model instances if the metamodel
> (ecore) has changed?
>
> I've heard about edapt/cope but I don't know if it is already usable.
>
> Otherwise I somehow have to keep multiple versions of the plugin with
> the generated code to be able to load every instance with its respective
> metamodel. (I want to compare the models later with emf compare)
> (Suggestions to this approach are also welcome.)
>
> Thanks for your help
>
> Daniel

Almost the same conversation you find when looking for a message titled

"Best practices for versioning and migration" :-)

Regards,
Dirk
Previous Topic:[TENEO] 3 Tier architecture. Is it possible
Next Topic:.xslt from .ecore2ecore, is it posible?
Goto Forum:
  


Current Time: Tue Apr 23 09:51:19 GMT 2024

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

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

Back to the top