Skip to main content



      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 13:57 Go to next message
Eclipse UserFriend
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 14:04] by Moderator

Re: Genmodel Changes and XMI Resource [message #658536 is a reply to message #658505] Tue, 08 March 2011 15:50 Go to previous messageGo to next message
Eclipse UserFriend
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 00:20 Go to previous message
Eclipse UserFriend
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 Jul 15 09:09:28 EDT 2025

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

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

Back to the top