[EMF Store] EMF Model and discrepancy tolerance [message #1460457] |
Mon, 03 November 2014 10:38  |
Eclipse User |
|
|
|
I have been using java serialization for persisting my POJOs in files but now i need to store my POJOs using EMFStore and needs collaboration in my application so i have decided to use EMFStore .
If i have saved an EMF model and i have to do alterations in my ecore model like add/delete/rename attributes then will i able to retirve saved models properly from saved resources?
So to be concerete let's suppose i have an ecore model and i have many saved models in using EMFStore
1 - if i add a new attribute to my ecore model and regenerate model code then will i be able to retrieve old models saved using EMFStore properly?
2 - if i delete an attribute to my ecore model and regenerate model code then will i be able to retrieve old models saved using EMFStore properly?
3 - if i rename an attribute to my ecore model and regenerate model code then will i be able to retrieve old models saved using EMFStore properly?
thanks for helping....
Cheers,
|
|
|
Re: [EMF Store] EMF Model and discrepancy tolerance [message #1463427 is a reply to message #1460457] |
Thu, 06 November 2014 09:54  |
Eclipse User |
|
|
|
Hi,
comments inline...
Cheers,
Maximilian
> If i have saved an EMF model and i have to do alterations in my ecore
> model like add/delete/rename attributes then will i able to retirve
> saved models properly from saved resources?
It depends on the kind of change, see below.
> So to be concerete let's suppose i have an ecore model and i have many
> saved models in using EMFStore
> 1 - if i add a new attribute to my ecore model and regenerate model code
> then will i be able to retrieve old models saved using EMFStore properly?
Yes, if you use the EMFStore default backend (XMI)
> 2 - if i delete an attribute to my ecore model and regenerate model code
> then will i be able to retrieve old models saved using EMFStore properly?
No, you will need to migrate, e.g. using Edapt. There is an Edapt
integration of Edapt with EMFStore but it is outdated since there was no
graduation release of Edapt, but there will be one tomorrow. If you
would like to do this please open a bugzilla for EMFStore requesting the
Edapt integration.
> 3 - if i rename an attribute to my ecore model and regenerate model code
> then will i be able to retrieve old models saved using EMFStore properly?
No, same as 2.
> thanks for helping....
You´re welcome!
--
Maximilian Kögel
Get Professional Eclipse Support: http://eclipsesource.com/munich
|
|
|
Powered by
FUDForum. Page generated in 0.24339 seconds