简体   繁体   中英

EMF : Keeping up with different version of ecore model

When we made initial release of our model we had the following model 1. Person:String:Name,String :Address 2. Version : 1.0

so export /import was easy using EMF's persistent APIs(Storing them as xmls).

Now we have changed the model to 1. Person :String:Name,Address 2. Address: String:House Number, String:Stree Name, String:City 3. Version : 2.0

The same thing explained below

在此处输入图片说明

Now how to support older xml files(which are exported using old model) in the new Model.

Is there any support in EMF to do this?

There are some tools/frameworks to help with model migration. Edapt is probably the most well-known (and an official Eclipse project). Basically, it includes tooling and runtime support that tracks the history of your metamodels and can migrate instances at runtime. There was a talk about it at EclipseCon earlier this year.

I've also heard of another project, EMF Migrate , but I don't know much about it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM