Overriding persistence behaviour of an EMF resource [message #694035] |
Thu, 07 July 2011 16:59 |
saurav sarkar Messages: 428 Registered: July 2009 |
Senior Member |
|
|
Hi,
In EMF we have seen the attributes of the parent object get persisted first then the subclass attributes.
I am just taking XML as an use case.
During the save of any XML resource, I have seen the XMLSaveImpl saves the features of the classes.These features are retrieved by getEAllStructuralFeatures() of any EClass and this list is populated by putting the super type attributes first.
Same we see in the toString() implementation of any object.
Could these behaviour be somehow overriden or changed such that the sublcass attributes are persisted first ?.
cheers,
Saurav
My Blog http://codifyit.blogspot.com/
Follow me: http://twitter.com/sauravs
[Updated on: Thu, 07 July 2011 17:00] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03211 seconds