Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsGenmodel Changes and XMI Resource
https://www.eclipse.org/forums/index.php/mv/msg/205749/658505/#msg_658505
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?
]]>Sumit Mathur2011-03-08T18:57:10-00:00Re: Genmodel Changes and XMI Resource
https://www.eclipse.org/forums/index.php/mv/msg/205749/658536/#msg_658536
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?
>
>
>]]>Ed Merks2011-03-08T20:50:05-00:00Re: Genmodel Changes and XMI Resource
https://www.eclipse.org/forums/index.php/mv/msg/205749/658856/#msg_658856
Sumit Mathur2011-03-10T05:20:24-00:00