Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Store] EMF Model and discrepancy tolerance
[EMF Store] EMF Model and discrepancy tolerance [message #1460457] Mon, 03 November 2014 15:38 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member
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 14:54 Go to previous message
Maximilian Koegel is currently offline Maximilian KoegelFriend
Messages: 253
Registered: July 2009
Senior Member
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
Previous Topic:[Edapt] URI Changes in release, how to manage it for multiple models ?
Next Topic:[Edapt] A question about custom migration
Goto Forum:
  


Current Time: Tue Apr 16 08:43:44 GMT 2024

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

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

Back to the top