| <?xml version="1.0" encoding="UTF-8"?> |
| <ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="uml2rdbms" nsURI="http://www.eclipse.org/qvt/examples/0.1/ManualUML2RDBMS" |
| nsPrefix="uml2rdbms"> |
| <eClassifiers xsi:type="ecore:EClass" name="AttributeToColumn" eSuperTypes="#//FromAttribute #//ToColumn"> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="type" eType="#//PrimitiveToName"/> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EClass" name="AssociationToForeignKey" eSuperTypes="#//ToColumn"> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="referenced" eType="#//ClassToTable"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="owner" eType="#//ClassToTable" |
| eOpposite="#//ClassToTable/associationsToForeignKeys"/> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="association" eType="ecore:EClass ManualUML.ecore#//Association"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="foreignKey" eType="ecore:EClass ManualRDBMS.ecore#//ForeignKey"/> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EClass" name="ClassToTable" eSuperTypes="#//FromAttributeOwner #//ToColumn"> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="owner" eType="#//PackageToSchema" |
| eOpposite="#//PackageToSchema/classesToTables"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="associationsToForeignKeys" |
| upperBound="-1" eType="#//AssociationToForeignKey" containment="true" eOpposite="#//AssociationToForeignKey/owner"/> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="umlClass" eType="ecore:EClass ManualUML.ecore#//Class"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="table" eType="ecore:EClass ManualRDBMS.ecore#//Table"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="primaryKey" eType="ecore:EClass ManualRDBMS.ecore#//Key"/> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EClass" name="FromAttribute" abstract="true"> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="kind" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="owner" eType="#//FromAttributeOwner" |
| eOpposite="#//FromAttributeOwner/fromAttributes"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="leafs" ordered="false" |
| upperBound="-1" eType="#//AttributeToColumn"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="attribute" eType="ecore:EClass ManualUML.ecore#//Attribute"/> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EClass" name="FromAttributeOwner" abstract="true"> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="fromAttributes" ordered="false" |
| upperBound="-1" eType="#//FromAttribute" containment="true" eOpposite="#//FromAttribute/owner"/> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EClass" name="NonLeafAttribute" eSuperTypes="#//FromAttributeOwner #//FromAttribute"/> |
| <eClassifiers xsi:type="ecore:EClass" name="PackageToSchema"> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="classesToTables" ordered="false" |
| upperBound="-1" eType="#//ClassToTable" containment="true" eOpposite="#//ClassToTable/owner"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="primitivesToNames" ordered="false" |
| upperBound="-1" eType="#//PrimitiveToName" containment="true" eOpposite="#//PrimitiveToName/owner"/> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="umlPackage" lowerBound="1" |
| eType="ecore:EClass ManualUML.ecore#//Package"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="schema" lowerBound="1" |
| eType="ecore:EClass ManualRDBMS.ecore#//Schema"/> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EClass" name="PrimitiveToName"> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="owner" eType="#//PackageToSchema" |
| eOpposite="#//PackageToSchema/primitivesToNames"/> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="primitive" lowerBound="1" |
| eType="ecore:EClass ManualUML.ecore#//PrimitiveDataType"/> |
| <eStructuralFeatures xsi:type="ecore:EAttribute" name="typeName" lowerBound="1" |
| eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> |
| </eClassifiers> |
| <eClassifiers xsi:type="ecore:EClass" name="ToColumn"> |
| <eStructuralFeatures xsi:type="ecore:EReference" name="column" eType="ecore:EClass ManualRDBMS.ecore#//Column"/> |
| </eClassifiers> |
| </ecore:EPackage> |