diff options
Diffstat (limited to 'examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/attroverridesecondarytable/model/overridesecondarytable.ecore')
-rw-r--r-- | examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/attroverridesecondarytable/model/overridesecondarytable.ecore | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/attroverridesecondarytable/model/overridesecondarytable.ecore b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/attroverridesecondarytable/model/overridesecondarytable.ecore deleted file mode 100644 index 674daedb0..000000000 --- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/annotations/attroverridesecondarytable/model/overridesecondarytable.ecore +++ /dev/null @@ -1,48 +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="attroverridesecondarytable" - nsURI="http://www.eclipse.org/emf/teneo/samples/emf/annotations/attroverridesecondarytable" - nsPrefix="attroverridesecondarytable"> - <eClassifiers xsi:type="ecore:EClass" name="Address"> - <eAnnotations source="teneo.jpa"> - <details key="value" value="@Embeddable"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="street" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="city" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EReference" name="country" eType="#//Country"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="Person"> - <eAnnotations source="teneo.jpa"> - <details key="value" value="@Inheritance(strategy=SINGLE_TABLE)
"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="age" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="Employee" eSuperTypes="#//Person"> - <eAnnotations source="teneo.jpa"> - <details key="value" value="@SecondaryTable(name="secondary_table")"/> - </eAnnotations> - <eStructuralFeatures xsi:type="ecore:EReference" name="address" eType="#//Address"> - <eAnnotations source="teneo.jpa"> - <details key="value" value="@Embedded
@AttributeOverrides({
	@AttributeOverride(name="name" column=@Column(name="other_name" table="secondary_table")),
	@AttributeOverride(name="street" column=@Column(name="other_street" table="secondary_table")),
	@AttributeOverride(name="city" column=@Column(name="other_city" table="secondary_table"))
})
@AssociationOverrides({
	@AssociationOverride(name="country" joinColumns=@JoinColumn(name="addr_country" table="secondary_table"))
})"/> - </eAnnotations> - </eStructuralFeatures> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="employeeNumber" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"> - <eAnnotations source="teneo.jpa"> - <details key="value" value="@Column(name="emp_num" table="secondary_table")"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="NonEmployee" eSuperTypes="#//Person"> - <eStructuralFeatures xsi:type="ecore:EReference" name="address" eType="#//Address"> - <eAnnotations source="teneo.jpa"> - <details key="value" value="@Embedded"/> - </eAnnotations> - </eStructuralFeatures> - </eClassifiers> - <eClassifiers xsi:type="ecore:EClass" name="Country"> - <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> - </eClassifiers> -</ecore:EPackage> |