blob: 6eb76afdc1d4b37c592015e4a73c09d8949bb978 [file] [log] [blame]
<?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="simplerdbms" nsURI="http://http://www.eclipse.org/qvt/examples/0.1/SimpleRDBMS"
nsPrefix="simplerdbms">
<eClassifiers xsi:type="ecore:EClass" name="Column" eSuperTypes="#//RModelElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="owner" lowerBound="1" eType="#//Table"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="foreignKeys" upperBound="-1"
eType="#//ForeignKey" eOpposite="#//ForeignKey/column"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="key" upperBound="-1" eType="#//Key"
eOpposite="#//Key/column"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="ForeignKey" eSuperTypes="#//RModelElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="refersTo" lowerBound="1"
eType="#//Key"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="column" upperBound="-1"
eType="#//Column" eOpposite="#//Column/foreignKeys"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="owner" lowerBound="1" eType="#//Table"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="schema" lowerBound="1"
eType="#//Schema"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Key" eSuperTypes="#//RModelElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="owner" lowerBound="1" eType="#//Table"
eOpposite="#//Table/theKey"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="column" upperBound="-1"
eType="#//Column" eOpposite="#//Column/key"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="RModelElement" 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"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Schema" eSuperTypes="#//RModelElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="tables" upperBound="-1"
eType="#//Table" eOpposite="#//Table/schema"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Table" eSuperTypes="#//RModelElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="column" upperBound="-1"
eType="#//Column"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="schema" lowerBound="1"
eType="#//Schema" eOpposite="#//Schema/tables"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="theKey" upperBound="-1"
eType="#//Key" eOpposite="#//Key/owner"/>
</eClassifiers>
</ecore:EPackage>