Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 317171c9ad74dff6da45b79c4d82aef3f2f55d16 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<?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="usertype" nsURI="http://www.elver.org/samples/emf/hibernate/usertype"
    nsPrefix="usertype">
  <eAnnotations source="teneo.hibernate">
    <details key="appinfo" value="&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;@NamedQuery(name=&quot;getPersonByBirthPlace2&quot; query=&quot;select p from Person p where p.birthPlace=?&quot;)&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;"/>
  </eAnnotations>
  <eClassifiers xsi:type="ecore:EDataType" name="Name" instanceClassName="org.eclipse.emf.teneo.samples.emf.hibernate.usertype.Name">
    <eAnnotations source="teneo.jpa">
      <details key="appinfo" value="&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;@TypeDef(name=&quot;nameType&quot; typeClass=&quot;org.eclipse.emf.teneo.samples.emf.hibernate.usertype.NameType&quot;)&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;@Columns({@Column(name=&quot;first_name&quot;), @Column(name=&quot;last_name&quot;)})&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;"/>
    </eAnnotations>
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
      <details key="name" value="Name"/>
    </eAnnotations>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Person">
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
      <details key="name" value="Person"/>
      <details key="kind" value="elementOnly"/>
    </eAnnotations>
    <eAnnotations source="teneo.hibernate">
      <details key="appinfo" value="@NamedQuery(name=&quot;getPersonByBirthPlace&quot; query=&quot;select p from Person p where p.birthPlace=?&quot;)&#xA;@HbEntity(dynamicInsert=true, dynamicUpdate=true, mutable=true, selectBeforeUpdate=true, persister=&quot;org.hibernate.persister.entity.SingleTableEntityPersister&quot;, optimisticLock=NONE, polymorphism=EXPLICIT)"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" unique="false" lowerBound="1"
        eType="#//Name">
      <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:EAttribute" name="numbers" unique="false"
        lowerBound="1" eType="#//IntArray">
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
        <details key="kind" value="element"/>
        <details key="name" value="intArray"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="phoneNumbers" upperBound="100"
        eType="#//PhoneNumber"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="emergencyContact" eType="#//PhoneNumber"
        defaultValueLiteral=""/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="addresses" upperBound="-1"
        eType="#//Address" eOpposite="#//Address/person">
      <eAnnotations source="teneo.jpa">
        <details key="appinfo" value="@OnDelete(action=OnDeleteAction.CASCADE)&#xA;@OneToMany(mappedBy=&quot;person&quot;, indexed=false, unique=true)"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="birthPlace" lowerBound="1"
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="double" unique="false"
        lowerBound="1" eType="#//myDoubleType" defaultValueLiteral="0">
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
        <details key="kind" value="element"/>
        <details key="name" value="intArray"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EReference" name="certificate" eType="#//Certificate">
      <eAnnotations source="teneo.jpa">
        <details key="appinfo" value="@Columns({@Column(name=&quot;cert_name&quot;), @Column(name=&quot;cert_length&quot;)})&#x9;&#x9;"/>
      </eAnnotations>
      <eAnnotations source="teneo.jpa.auditing">
        <details key="appinfo" value="@Columns({@Column(name=&quot;cert_name&quot;), @Column(name=&quot;cert_length&quot;)})&#x9;&#x9;"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EReference" name="certificates" upperBound="-1"
        eType="#//Certificate">
      <eAnnotations source="teneo.jpa">
        <details key="appinfo" value="@Columns({@Column(name=&quot;cert_name&quot;), @Column(name=&quot;cert_length&quot;)})&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;"/>
      </eAnnotations>
      <eAnnotations source="teneo.jpa.auditing">
        <details key="appinfo" value="@Columns({@Column(name=&quot;cert_name&quot;), @Column(name=&quot;cert_length&quot;)})&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;"/>
      </eAnnotations>
    </eStructuralFeatures>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EDataType" name="PhoneNumber" instanceClassName="org.eclipse.emf.teneo.samples.emf.hibernate.usertype.UsaPhoneNumber"/>
  <eClassifiers xsi:type="ecore:EDataType" name="IntArray" instanceClassName="int[]">
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
      <details key="name" value="IntArray"/>
    </eAnnotations>
    <eAnnotations source="teneo.jpa">
      <details key="appinfo" value="&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;@TypeDef(name=&quot;intArrayType&quot; typeClass=&quot;org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType&quot;, parameters={@Parameter(name=&quot;epackage&quot; value=&quot;http://www.elver.org/samples/emf/hibernate/usertype&quot;), @Parameter(name=&quot;edatatype&quot;, value=&quot;IntArray&quot;)})&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;"/>
    </eAnnotations>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Address">
    <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="addressInfo" unique="false"
        lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
      <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="person" eType="#//Person"
        eOpposite="#//Person/addresses"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EDataType" name="myDoubleType" instanceClassName="java.lang.Double">
    <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
      <details key="name" value="IntArray"/>
    </eAnnotations>
    <eAnnotations source="teneo.jpa">
      <details key="appinfo" value="&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;@Type(type=&quot;org.eclipse.emf.teneo.hibernate.mapping.DefaultToStringUserType&quot;, parameters={@Parameter(name=&quot;epackage&quot; value=&quot;http://www.elver.org/samples/emf/hibernate/usertype&quot;), @Parameter(name=&quot;edatatype&quot;, value=&quot;myDoubleType&quot;)})&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;"/>
    </eAnnotations>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="City">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//ELong"
        defaultValueLiteral="0" iD="true">
      <eAnnotations source="teneo.jpa">
        <details key="value" value="@GeneratedValue(strategy=&quot;ASSIGNED&quot;)"/>
      </eAnnotations>
    </eStructuralFeatures>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="size" eType="#//CitySize"
        defaultValueLiteral="MEDIUM" unsettable="true"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EEnum" name="CitySize">
    <eLiterals name="SMALL"/>
    <eLiterals name="MEDIUM" value="1"/>
    <eLiterals name="LARGE" value="2"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Certificate">
    <eAnnotations source="teneo.jpa">
      <details key="appinfo" value="@Type(type=&quot;org.eclipse.emf.teneo.samples.emf.hibernate.usertype.CertificateType&quot;)&#x9;&#x9;&#x9;&#x9;&#x9;"/>
    </eAnnotations>
    <eAnnotations source="teneo.jpa.auditing">
      <details key="appinfo" value="@Type(type=&quot;org.eclipse.emf.teneo.samples.emf.hibernate.usertype.CertificateType&quot;)&#x9;&#x9;&#x9;&#x9;&#x9;"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" unique="false" lowerBound="1"
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString">
      <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:EAttribute" name="length" unique="false"
        lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt">
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
        <details key="kind" value="element"/>
        <details key="name" value="name"/>
      </eAnnotations>
    </eStructuralFeatures>
  </eClassifiers>
</ecore:EPackage>

Back to the top