-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Metamodel migration, POJO datatype and feature serialization ordering #22
Comments
|
|
If you have a meta model with a custom datatype which can be an enum or not, for example in the official library sample from EMF:
There are countless of metamodels out there that are handling by themselves how to save/load the value of their datatypes, here is one case from UML for example. If you define a custom datatype in your meta model, you are in charge of its serialization/deserialization by overriding the relevant methods in your factory We cannot break the serialization of all those metamodels |
You're so right! Thank you for this feedback. |
Hi Stephane, Actually it is not that simple because What was initially done in Therefore, we have to find a way to detect that the EAttributeType is a POJO datatype, and that the Identifying if the EAttributeType is a POJO datatype is done by testing if the instance class of the EAttributeType is not null because every other case of primitive types and enumeration has been handled in I have updated the commit accordingly, please take a look when you get a chance. |
This issue addresses the following subjects:
Handling the renaming of EAttribute
The metamodel migration API should allow to handle the renaming of an EAttribute
Handling a type change or a value change of an EAttribute
The metamodel migration API should allow the migration of value and the changing of type of EAttributes.
Support for Serialization / deserialization of POJO EDataType
Custom data types with instance type set to a POJO class needs to be serialized to / deserialized from json.taType()`
Add a comparator option on the JsonResource to determine the order in which features are serialized.
The text was updated successfully, but these errors were encountered: