blob: ff1b62deec6e7f344f7829c94b36d6e87f3ce7fe (
plain) (
tree)
|
|
<?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="attributeoverrides"
nsURI="http:///org/eclipse/emf/teneo/samples/emf/annotations/attributeoverrides.ecore"
nsPrefix="org.eclipse.emf.teneo.samples.emf.annotations.attributeoverrides">
<eClassifiers xsi:type="ecore:EClass" name="Person">
<eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Test MappedSuperclass annotation"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="bornIn" lowerBound="1"
eType="#//City">
<eAnnotations source="teneo.jpa">
<details key="appinfo" value="@Embedded
@AttributeOverride(name="name" column=@Column(name="bornNameColumn"))"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="livesIn" lowerBound="1"
eType="#//City">
<eAnnotations source="teneo.jpa">
<details key="appinfo" value="@Embedded
@AttributeOverrides({
	@AttributeOverride(name="name" column=@Column(name="nameColumn")),
	@AttributeOverride(name="country" column=@Column(name="countryColumn"))
})"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="City">
<eAnnotations source="teneo.jpa">
<details key="appinfo" 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="country" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
</ecore:EPackage>
|