Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Genmodel Changes and XMI Resource(Changes in emf model makes old xmi resource unusable.)
Genmodel Changes and XMI Resource [message #658505] Tue, 08 March 2011 18:57 Go to next message
Sumit Mathur is currently offline Sumit MathurFriend
Messages: 3
Registered: March 2011
Junior Member
Hi,

We are using EMF in our project and facing some problems with genmodel changes and XMI Rresource.

e.g I have an EObject with attributes 'name' and 'description'. I create the object and save it as xmi resource.

Now if for some reason i have to change the model and remove attribute 'name', xmi resource is no longer usable as it does not comply with latest model definition.

What can be done in these cases?

Any suggestion?


[Updated on: Tue, 08 March 2011 19:04]

Report message to a moderator

Re: Genmodel Changes and XMI Resource [message #658536 is a reply to message #658505] Tue, 08 March 2011 20:50 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30541
Registered: July 2009
Senior Member
Sumit,

Comments belwo.

Sumit Mathur wrote:
> Hi,
>
> We are using EMF in our project and facing some problems with genmodel
> changes and XMI Rresource.
>
> e.g I have an EObject with attributes 'name' and 'description'. I
> create the object and save it as xmi resource.
>
> Now if for some reason i have to change the model and remove attribute
> 'name', xmi resource is no longer usable as it does not comply with
> latest model definition.
It will throw exceptions while loading, but the resource as a whole
still loads properly...
>
> What can be done in these cases?
/**
* This options allows you to record unknown features during
deserialization/loading.
* The default is <code>Boolean.FALSE</code> unless set to
<code>Boolean.TRUE</code> explicitly.
* The unknown features and their values can be accessed via
getEObjectToExtensionMap().
* @see #getEObjectToExtensionMap()
*/
String OPTION_RECORD_UNKNOWN_FEATURE = "RECORD_UNKNOWN_FEATURE";
>
> Any suggestion?
>
>
>
Re: Genmodel Changes and XMI Resource [message #658856 is a reply to message #658536] Thu, 10 March 2011 05:20 Go to previous message
Sumit Mathur is currently offline Sumit MathurFriend
Messages: 3
Registered: March 2011
Junior Member
Thanks, this helps.
Previous Topic:GenModel Initialize by Loading on standalone
Next Topic:[CDO/Teneo] DuplicateMappingException: Duplicate class/entity mapping CDOResourceNode (breaking chan
Goto Forum:
  


Current Time: Tue Oct 15 01:13:02 GMT 2019

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

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

Back to the top