Bug 426237 - Support for highly configurable XML persistence mapping
Summary: Support for highly configurable XML persistence mapping
Status: CLOSED WONTFIX
Alias: None
Product: Sphinx
Classification: Automotive
Component: Core (show other bugs)
Version: 0.8.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Stephan Eberle CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-21 07:35 EST by Mark Broerkens CLA
Modified: 2024-05-07 00:27 EDT (History)
3 users (show)

See Also:


Attachments
Overview, relationship between this serializer / deserializer for XML and the schema generator proposed in bug #425636 (33.25 KB, application/pdf)
2014-01-21 07:40 EST, Mark Broerkens CLA
stephaneberle9: iplog+
Details
Source code of the XML Persistence Mapping Serialization (1.67 MB, application/zip)
2014-02-11 11:50 EST, Mark Broerkens CLA
stephaneberle9: iplog+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Broerkens CLA 2014-01-21 07:35:50 EST
== Problem Description ==
In order to enable interoperability between systems and organization it is required to agree on a common meta model and a common (XML) representation that is used for exchange. 
Eclipse EMF allows definition of the meta model using Ecore and has implemented the XMI 2.x rules for mapping models to XML. Unfortunately XMI 2.x doesn't always fulfill the needs of specific domains and a more flexible mapping between models and XML is required. Thus a specialized serializer / deserializer needs to be implemented.

== Proposed Solution ==
Provide generic serialization/deserialization that extends the EMF XML mappings. Various serialization strategies are configurable using annotations in the meta model. This allows for configuration of XML mappings as they are defined by OMG XMI 1.x, XMI 2.x, OMG ReqIF, EAST ADL as well as many mappings used by AUTOSAR. Since the implementation allows for configuration of persistence mappings on the granularity of individual EStructuralFeatures it is even possible to mix different mappings within a single XML file.

I propose to contribute the following plugins and projects:
org.eclipse.sphinx.emf.serialization
   Implementation of the configurable serialization and deserialization

org.eclipse.sphinx.emf.serialization.doc.isv
   documentation of the persistence mapping rules implanted in org.eclipse.sphinx.emf.serialization

org.eclipse.sphinx.tests.emf.serialization
   test cases for org.eclipse.sphinx.emf.serialization

org.eclipse.sphinx.tests.emf.serialization.generators
   additional test cases that check consistency between the serializer/deserializer and the schema generator contributed via bug #425636 

org.eclipse.sphinx.releng.emf.serialization.builds
   Master POM that builds and tests the serializer / desiarializer

org.eclipse.sphinx.tools.emf.serialization.targetdefs
   Target definition that is used for building the serializer / deserializer
Comment 1 Mark Broerkens CLA 2014-01-21 07:40:16 EST
Created attachment 239178 [details]
Overview, relationship between this serializer / deserializer for XML and the schema generator proposed in bug #425636
Comment 2 Mark Broerkens CLA 2014-02-11 11:50:03 EST
Created attachment 239832 [details]
Source code of the XML Persistence Mapping Serialization

attached zip contains:
org.eclipse.sphinx.emf.serialization
org.eclipse.sphinx.emf.serialization.doc.isv
org.eclipse.sphinx.tests.emf.serialization
org.eclipse.sphinx.tests.emf.serialization.generators

(The releng and build projects that were mentioned in the description are not required since the contribution should be easily integratable with the existing sphinx maven/tycho build and target )
Comment 3 Stephan Eberle CLA 2014-03-13 10:53:25 EDT
Revised the following plug-ins for coding conventions and formal things,
imported them into the Sphinx codebase, and updated Team Project Set
files:

* org.eclipse.sphinx.emf.serialization.doc.isv
* org.eclipse.sphinx.emf.serialization
* org.eclipse.sphinx.tests.emf.serialization
* org.eclipse.sphinx.tests.emf.serialization.generators
Comment 4 Balazs Grill CLA 2024-05-07 00:27:27 EDT
Closed stale issue before migration