Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/associationoverride/model')
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/associationoverride/model/AssociationOverride.genmodel26
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/associationoverride/model/AssociationOverride.xsd56
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/associationoverride/model/associationoverride.ecore92
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/associationoverride/model/associationoverride.ecore_diagram103
4 files changed, 0 insertions, 277 deletions
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/associationoverride/model/AssociationOverride.genmodel b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/associationoverride/model/AssociationOverride.genmodel
deleted file mode 100644
index 4edc7eeca..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/associationoverride/model/AssociationOverride.genmodel
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<genmodel:GenModel xmi:version="2.0"
- xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.emf.teneo.samples/src"
- modelPluginID="org.eclipse.emf.teneo.samples" modelName="AssociationOverride"
- importerID="org.eclipse.xsd.ecore.importer" complianceLevel="5.0">
- <foreignModel>AssociationOverride.xsd</foreignModel>
- <genPackages prefix="Associationoverride" basePackage="org.eclipse.emf.teneo.samples.emf.annotations"
- resource="XML" disposableProviderFactory="true" ecorePackage="associationoverride.ecore#/">
- <genClasses ecoreClass="associationoverride.ecore#//Address">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute associationoverride.ecore#//Address/street"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute associationoverride.ecore#//Address/postalCode"/>
- </genClasses>
- <genClasses ecoreClass="associationoverride.ecore#//Employee">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute associationoverride.ecore#//Employee/department"/>
- </genClasses>
- <genClasses ecoreClass="associationoverride.ecore#//Person">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute associationoverride.ecore#//Person/id"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute associationoverride.ecore#//Person/name"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference associationoverride.ecore#//Person/address"/>
- </genClasses>
- <genClasses ecoreClass="associationoverride.ecore#//Student">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute associationoverride.ecore#//Student/faculty"/>
- </genClasses>
- </genPackages>
-</genmodel:GenModel>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/associationoverride/model/AssociationOverride.xsd b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/associationoverride/model/AssociationOverride.xsd
deleted file mode 100644
index 4dea7e203..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/associationoverride/model/AssociationOverride.xsd
+++ /dev/null
@@ -1,56 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.eclipse.org/emf/teneo/samples/emf/annotations/associationoverride"
- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:this="http://www.eclipse.org/emf/teneo/samples/emf/annotations/associationoverride">
-
- <xsd:complexType name="Address">
- <xsd:sequence>
- <xsd:element name="street" type="xsd:string"/>
- <xsd:element name="postalCode" type="xsd:string"/>
- </xsd:sequence>
- </xsd:complexType>
-
- <xsd:complexType name="Person">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">@MappedSuperclass</xsd:appinfo>
- </xsd:annotation>
- <xsd:sequence>
- <xsd:element name="id" type="xsd:long">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">@Id</xsd:appinfo>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="name" type="xsd:string"/>
- <xsd:element name="address" type="this:Address">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">@ManyToOne</xsd:appinfo>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- </xsd:complexType>
-
- <xsd:complexType name="Student">
- <!-- Leave the Address foreign key column as-is. ("address_id") -->
- <xsd:complexContent>
- <xsd:extension base="this:Person">
- <xsd:sequence>
- <xsd:element name="faculty" type="xsd:string"/>
- </xsd:sequence>
- </xsd:extension>
- </xsd:complexContent>
- </xsd:complexType>
-
- <xsd:complexType name="Employee">
- <xsd:annotation>
- <!-- Override the Address foreign key column. ("employee_address_id") -->
- <xsd:appinfo source="teneo.jpa">@AssociationOverride(name="address" joinColumns=@JoinColumn(name="employee_address_id"))</xsd:appinfo>
- </xsd:annotation>
- <xsd:complexContent>
- <xsd:extension base="this:Person">
- <xsd:sequence>
- <xsd:element name="department" type="xsd:string"/>
- </xsd:sequence>
- </xsd:extension>
- </xsd:complexContent>
- </xsd:complexType>
-
-</xsd:schema> \ No newline at end of file
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/associationoverride/model/associationoverride.ecore b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/associationoverride/model/associationoverride.ecore
deleted file mode 100644
index ec2fbffca..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/associationoverride/model/associationoverride.ecore
+++ /dev/null
@@ -1,92 +0,0 @@
-<?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="associationoverride"
- nsURI="http://www.eclipse.org/emf/teneo/samples/emf/annotations/associationoverride"
- nsPrefix="associationoverride">
- <eClassifiers xsi:type="ecore:EClass" name="Address">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="Address"/>
- <details key="kind" value="elementOnly"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="street" unique="false"
- lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="street"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="postalCode" unique="false"
- lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="postalCode"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Employee" eSuperTypes="#//Person">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@AssociationOverride(name=&quot;address&quot; joinColumns=@JoinColumn(name=&quot;employee_address_id&quot;))"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="Employee"/>
- <details key="kind" value="elementOnly"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="department" unique="false"
- lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="department"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Person">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@MappedSuperclass"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="Person"/>
- <details key="kind" value="elementOnly"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" unique="false" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Long" unsettable="true">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@Id"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="id"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" unique="false" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="name"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="address" lowerBound="1"
- eType="#//Address" containment="true" resolveProxies="false">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@ManyToOne"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="address"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Student" eSuperTypes="#//Person">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="Student"/>
- <details key="kind" value="elementOnly"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="faculty" unique="false"
- lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="faculty"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
-</ecore:EPackage>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/associationoverride/model/associationoverride.ecore_diagram b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/associationoverride/model/associationoverride.ecore_diagram
deleted file mode 100644
index 44ee51987..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/associationoverride/model/associationoverride.ecore_diagram
+++ /dev/null
@@ -1,103 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<notation:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.0/notation" xmi:id="_TMWwQAuNEdurFblPbm8dBg" type="Ecore" measurementUnit="Pixel">
- <children xmi:type="notation:Node" xmi:id="_xt_4MAuOEdurFblPbm8dBg" type="2001">
- <children xmi:type="notation:Node" xmi:id="_xt_4NguOEdurFblPbm8dBg" type="5001"/>
- <children xmi:type="notation:Node" xmi:id="_xt_4NwuOEdurFblPbm8dBg" type="7001">
- <styles xmi:type="notation:DrawerStyle" xmi:id="_xuAfQAuOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_xuAfQQuOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_xuAfQguOEdurFblPbm8dBg"/>
- </children>
- <children xmi:type="notation:Node" xmi:id="_xuAfQwuOEdurFblPbm8dBg" type="7002">
- <styles xmi:type="notation:DrawerStyle" xmi:id="_xuAfRAuOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_xuAfRQuOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_xuAfRguOEdurFblPbm8dBg"/>
- </children>
- <children xmi:type="notation:Node" xmi:id="_xuAfRwuOEdurFblPbm8dBg" type="7003">
- <styles xmi:type="notation:DrawerStyle" xmi:id="_xuAfSAuOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_xuAfSQuOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_xuAfSguOEdurFblPbm8dBg"/>
- </children>
- <styles xmi:type="notation:FontStyle" xmi:id="_xt_4MQuOEdurFblPbm8dBg" fontName="Sans"/>
- <styles xmi:type="notation:DescriptionStyle" xmi:id="_xt_4MguOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:FillStyle" xmi:id="_xt_4MwuOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:LineStyle" xmi:id="_xt_4NAuOEdurFblPbm8dBg"/>
- <element xmi:type="ecore:EClass" href="associationoverride.ecore#//Address"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_xt_4NQuOEdurFblPbm8dBg" x="128" y="16" width="176" height="80"/>
- </children>
- <children xmi:type="notation:Node" xmi:id="_xuAfSwuOEdurFblPbm8dBg" type="2001">
- <children xmi:type="notation:Node" xmi:id="_xuBGUAuOEdurFblPbm8dBg" type="5001"/>
- <children xmi:type="notation:Node" xmi:id="_xuBGUQuOEdurFblPbm8dBg" type="7001">
- <styles xmi:type="notation:DrawerStyle" xmi:id="_xuBGUguOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_xuBGUwuOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_xuBGVAuOEdurFblPbm8dBg"/>
- </children>
- <children xmi:type="notation:Node" xmi:id="_xuBGVQuOEdurFblPbm8dBg" type="7002">
- <styles xmi:type="notation:DrawerStyle" xmi:id="_xuBGVguOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_xuBGVwuOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_xuBGWAuOEdurFblPbm8dBg"/>
- </children>
- <children xmi:type="notation:Node" xmi:id="_xuBGWQuOEdurFblPbm8dBg" type="7003">
- <styles xmi:type="notation:DrawerStyle" xmi:id="_xuBGWguOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_xuBGWwuOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_xuBGXAuOEdurFblPbm8dBg"/>
- </children>
- <styles xmi:type="notation:FontStyle" xmi:id="_xuAfTAuOEdurFblPbm8dBg" fontName="Sans"/>
- <styles xmi:type="notation:DescriptionStyle" xmi:id="_xuAfTQuOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:FillStyle" xmi:id="_xuAfTguOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:LineStyle" xmi:id="_xuAfTwuOEdurFblPbm8dBg"/>
- <element xmi:type="ecore:EClass" href="associationoverride.ecore#//Employee"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_xuAfUAuOEdurFblPbm8dBg" x="320" y="192" width="320" height="112"/>
- </children>
- <children xmi:type="notation:Node" xmi:id="_xuBtYAuOEdurFblPbm8dBg" type="2001">
- <children xmi:type="notation:Node" xmi:id="_xuBtZguOEdurFblPbm8dBg" type="5001"/>
- <children xmi:type="notation:Node" xmi:id="_xuBtZwuOEdurFblPbm8dBg" type="7001">
- <styles xmi:type="notation:DrawerStyle" xmi:id="_xuBtaAuOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_xuBtaQuOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_xuBtaguOEdurFblPbm8dBg"/>
- </children>
- <children xmi:type="notation:Node" xmi:id="_xuCUcAuOEdurFblPbm8dBg" type="7002">
- <styles xmi:type="notation:DrawerStyle" xmi:id="_xuCUcQuOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_xuCUcguOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_xuCUcwuOEdurFblPbm8dBg"/>
- </children>
- <children xmi:type="notation:Node" xmi:id="_xuCUdAuOEdurFblPbm8dBg" type="7003">
- <styles xmi:type="notation:DrawerStyle" xmi:id="_xuCUdQuOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_xuCUdguOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_xuCUdwuOEdurFblPbm8dBg"/>
- </children>
- <styles xmi:type="notation:FontStyle" xmi:id="_xuBtYQuOEdurFblPbm8dBg" fontName="Sans"/>
- <styles xmi:type="notation:DescriptionStyle" xmi:id="_xuBtYguOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:FillStyle" xmi:id="_xuBtYwuOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:LineStyle" xmi:id="_xuBtZAuOEdurFblPbm8dBg"/>
- <element xmi:type="ecore:EClass" href="associationoverride.ecore#//Person"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_xuBtZQuOEdurFblPbm8dBg" x="480" width="272" height="112"/>
- </children>
- <children xmi:type="notation:Node" xmi:id="_xuCUeAuOEdurFblPbm8dBg" type="2001">
- <children xmi:type="notation:Node" xmi:id="_xuCUfguOEdurFblPbm8dBg" type="5001"/>
- <children xmi:type="notation:Node" xmi:id="_xuC7gAuOEdurFblPbm8dBg" type="7001">
- <styles xmi:type="notation:DrawerStyle" xmi:id="_xuC7gQuOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_xuC7gguOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_xuC7gwuOEdurFblPbm8dBg"/>
- </children>
- <children xmi:type="notation:Node" xmi:id="_xuC7hAuOEdurFblPbm8dBg" type="7002">
- <styles xmi:type="notation:DrawerStyle" xmi:id="_xuC7hQuOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_xuC7hguOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_xuC7hwuOEdurFblPbm8dBg"/>
- </children>
- <children xmi:type="notation:Node" xmi:id="_xuC7iAuOEdurFblPbm8dBg" type="7003">
- <styles xmi:type="notation:DrawerStyle" xmi:id="_xuC7iQuOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_xuC7iguOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_xuC7iwuOEdurFblPbm8dBg"/>
- </children>
- <styles xmi:type="notation:FontStyle" xmi:id="_xuCUeQuOEdurFblPbm8dBg" fontName="Sans"/>
- <styles xmi:type="notation:DescriptionStyle" xmi:id="_xuCUeguOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:FillStyle" xmi:id="_xuCUewuOEdurFblPbm8dBg"/>
- <styles xmi:type="notation:LineStyle" xmi:id="_xuCUfAuOEdurFblPbm8dBg"/>
- <element xmi:type="ecore:EClass" href="associationoverride.ecore#//Student"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_xuCUfQuOEdurFblPbm8dBg" x="752" y="192" width="304" height="80"/>
- </children>
- <styles xmi:type="notation:PageStyle" xmi:id="_TMWwQQuNEdurFblPbm8dBg"/>
- <styles xmi:type="notation:GuideStyle" xmi:id="_TMWwQguNEdurFblPbm8dBg"/>
- <styles xmi:type="notation:DescriptionStyle" xmi:id="_TMWwQwuNEdurFblPbm8dBg"/>
- <element xmi:type="ecore:EPackage" href="associationoverride.ecore#/"/>
-</notation:Diagram>

Back to the top