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/mappedsuperclass/model')
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/model/mappedsuperclass.ecore73
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/model/mps.genmodel23
-rw-r--r--examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/model/mps.xsd65
3 files changed, 0 insertions, 161 deletions
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/model/mappedsuperclass.ecore b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/model/mappedsuperclass.ecore
deleted file mode 100644
index db3deef51..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/model/mappedsuperclass.ecore
+++ /dev/null
@@ -1,73 +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="mappedsuperclass"
- nsURI="http://www.eclipse.org/emf/teneo/samples/emf/annotations/mappedsuperclass"
- nsPrefix="mappedsuperclass">
- <eClassifiers xsi:type="ecore:EClass" name="AddIDDocument" eSuperTypes="#//Document">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@Entity"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="AddIDDocument"/>
- <details key="kind" value="elementOnly"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" 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>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Document">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@MappedSuperclass"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="Document"/>
- <details key="kind" value="elementOnly"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="myGenericInfo" 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="myGenericInfo"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="ParentDocument" eSuperTypes="#//Document">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@Entity @MappedSuperclass"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="ParentDocument"/>
- <details key="kind" value="elementOnly"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="myName" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="&#xA;&#x9;&#x9;&#x9;&#x9;&#x9; @Column(name=XXX,nullable=&quot;false&quot;)&#xA;&#x9;&#x9;&#x9;&#x9;&#x9; "/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="kind" value="element"/>
- <details key="name" value="myName"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="SpecificDocument" eSuperTypes="#//ParentDocument">
- <eAnnotations source="teneo.jpa">
- <details key="appinfo" value="@Entity&#xA; @AttributeOverrides({@AttributeOverride(name=&quot;myName&quot;, &#xA;&#x9;&#x9;column=@Column(name=&quot;PARENTDOCUMENT_NAME&quot;, length=&quot;50&quot;))})&#xA;&#x9;&#x9;&#x9;"/>
- </eAnnotations>
- <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
- <details key="name" value="SpecificDocument"/>
- <details key="kind" value="elementOnly"/>
- </eAnnotations>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="mySpecificInfo" 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="mySpecificInfo"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
-</ecore:EPackage>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/model/mps.genmodel b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/model/mps.genmodel
deleted file mode 100644
index 3fe71262c..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/model/mps.genmodel
+++ /dev/null
@@ -1,23 +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" copyrightText=""
- modelDirectory="/org.eclipse.emf.teneo.samples/src" modelPluginID="org.eclipse.emf.teneo.samples"
- modelName="Mps" importerID="org.eclipse.xsd.ecore.importer" complianceLevel="5.0">
- <foreignModel>mps.xsd</foreignModel>
- <genPackages prefix="Mappedsuperclass" basePackage="org.eclipse.emf.teneo.samples.emf.annotations"
- resource="XML" disposableProviderFactory="true" ecorePackage="mappedsuperclass.ecore#/">
- <genClasses ecoreClass="mappedsuperclass.ecore#//AddIDDocument">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mappedsuperclass.ecore#//AddIDDocument/name"/>
- </genClasses>
- <genClasses ecoreClass="mappedsuperclass.ecore#//Document">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mappedsuperclass.ecore#//Document/myGenericInfo"/>
- </genClasses>
- <genClasses ecoreClass="mappedsuperclass.ecore#//ParentDocument">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mappedsuperclass.ecore#//ParentDocument/myName"/>
- </genClasses>
- <genClasses ecoreClass="mappedsuperclass.ecore#//SpecificDocument">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute mappedsuperclass.ecore#//SpecificDocument/mySpecificInfo"/>
- </genClasses>
- </genPackages>
-</genmodel:GenModel>
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/model/mps.xsd b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/model/mps.xsd
deleted file mode 100644
index 6fee39563..000000000
--- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/mappedsuperclass/model/mps.xsd
+++ /dev/null
@@ -1,65 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsd:schema
- targetNamespace="http://www.eclipse.org/emf/teneo/samples/emf/annotations/mappedsuperclass"
- xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
- xmlns:this="http://www.eclipse.org/emf/teneo/samples/emf/annotations/mappedsuperclass"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
->
-
- <xsd:complexType name="Document">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">@MappedSuperclass</xsd:appinfo>
- </xsd:annotation>
- <xsd:sequence>
- <xsd:element name="myGenericInfo" type="xsd:string" />
- </xsd:sequence>
- </xsd:complexType>
-
- <xsd:complexType name="AddIDDocument">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">@Entity</xsd:appinfo>
- </xsd:annotation>
- <xsd:complexContent>
- <xsd:extension base="this:Document">
- <xsd:sequence>
- <xsd:element name="name" type="xsd:string" />
- </xsd:sequence>
- </xsd:extension>
- </xsd:complexContent>
- </xsd:complexType>
-
- <xsd:complexType name="ParentDocument">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">@Entity @MappedSuperclass</xsd:appinfo>
- </xsd:annotation>
- <xsd:complexContent>
- <xsd:extension base="this:Document">
- <xsd:sequence>
- <xsd:element name="myName" type="xsd:string">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">
- @Column(name=XXX,nullable="false")
- </xsd:appinfo>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- </xsd:extension>
- </xsd:complexContent>
- </xsd:complexType>
-
- <xsd:complexType name="SpecificDocument">
- <xsd:annotation>
- <xsd:appinfo source="teneo.jpa">@Entity
- @AttributeOverrides({@AttributeOverride(name="myName",
- column=@Column(name="PARENTDOCUMENT_NAME", length="50"))})
- </xsd:appinfo>
- </xsd:annotation>
- <xsd:complexContent>
- <xsd:extension base="this:ParentDocument">
- <xsd:sequence>
- <xsd:element name="mySpecificInfo" type="xsd:string" />
- </xsd:sequence>
- </xsd:extension>
- </xsd:complexContent>
- </xsd:complexType>
-</xsd:schema>

Back to the top