Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 72cb5840aff2676d51c3f16dd30f9e7342abb274 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?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="compositeid"
    nsURI="http:///org/elver/samples/emf/annotations/compositeid.ecore" nsPrefix="org.eclipse.emf.teneo.samples.emf.annotations.compositeid">
  <eClassifiers xsi:type="ecore:EClass" name="Parent" eSuperTypes="#//Person">
    <eStructuralFeatures xsi:type="ecore:EReference" name="children" upperBound="-1"
        eType="#//Child">
      <eAnnotations source="teneo.jpa">
        <details key="appinfo" value="@JoinColumns({&#xA;&#x9;@JoinColumn(name=&quot;myParentFirstName&quot;, referencedColumnName=&quot;firstName&quot;),&#xA;&#x9;@JoinColumn(name=&quot;myParentLastName&quot;, referencedColumnName=&quot;lastName&quot;)&#xA;})"/>
      </eAnnotations>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Child" eSuperTypes="#//Person"/>
  <eClassifiers xsi:type="ecore:EClass" name="Person">
    <eAnnotations source="teneo.jpa">
      <details key="appinfo" value="@IdClass(org.eclipse.emf.teneo.samples.emf.annotations.compositeid.PersonID)"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="firstName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
      <eAnnotations source="teneo.jpa">
        <details key="appinfo" value="@Id"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="lastName" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
      <eAnnotations source="teneo.jpa">
        <details key="appinfo" value="@Id"/>
      </eAnnotations>
    </eStructuralFeatures>
  </eClassifiers>
</ecore:EPackage>

Back to the top