Creating a weaving section

Last updated: March 29, 2005

This tutorial is a step-by-step description of the process of creating an new weaving section. Following this tutorial will show how to create weaving links between metamodels and how they are saved into a persistence media.

As example we will create weaving links (mappings) between a relational database schema to a XML schema. We use  two similar structures from on a laboratory that needed to have its relational data available in the Internet into XML. The main difference is the representation of the relation between Researcher and Projects. In the RDBMS it is done by a foreign key while in the XML schema it is a nested constraint.

In the following picture we see the weaving relations we want to create:

[weaving section schema]

The screen shots are based on version 3.1 of the Eclipse SDK and version 2.1 of EMF and 1.0 of Model Weaver and Weaver Base Extension.


Contents

Step 0: Prerequisites
Step 1: Creating a new weaving model
Step 2: Creating the laboratory weaving links