blob: 3610c8df5762eba7225fe9f040a4e7708a25f6e3 (
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
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping auto-import="false">
<class name="org.eclipse.emf.teneo.samples.issues.bz247939.impl.AnimalImpl" entity-name="Animal" abstract="false" lazy="false" discriminator-value="Animal" table="`ANIMAL`">
<meta attribute="eclassName" inherit="false">Animal</meta>
<meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz247939</meta>
<id name="id" type="java.lang.Long">
<column not-null="true" unique="false" name="`ANIMAL_ID`"/>
<generator class="native"/>
</id>
<discriminator type="string">
<column name="`ANIMAL_TYPE`" index="ANIMALANIMAL_TYPE" length="255" not-null="true"/>
</discriminator>
<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
<meta attribute="syntheticVersion" inherit="false">true</meta>
</version>
</class>
<class name="org.eclipse.emf.teneo.samples.issues.bz247939.impl.OwnerImpl" entity-name="Owner" abstract="false" lazy="false" table="`OWNER`">
<meta attribute="eclassName" inherit="false">Owner</meta>
<meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz247939</meta>
<id name="id" type="java.lang.Long">
<column not-null="true" unique="false" name="`OWNER_ID`"/>
<generator class="native"/>
</id>
<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
<meta attribute="syntheticVersion" inherit="false">true</meta>
</version>
<property name="name" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`NAME`"/>
</property>
<bag name="ownedCats" inverse="true" lazy="true" cascade="merge,persist,save-update,lock">
<key update="true">
<column name="`CAT_OWNER_ID`" unique="false"/>
</key>
<one-to-many entity-name="Cat"/>
</bag>
</class>
<subclass name="org.eclipse.emf.teneo.samples.issues.bz247939.impl.CatImpl" entity-name="Cat" abstract="false" lazy="false" extends="Animal" discriminator-value="Cat">
<meta attribute="eclassName" inherit="false">Cat</meta>
<meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bz247939</meta>
<join table="`CAT`">
<key>
<column name="`ANIMAL_ID`"/>
</key>
<many-to-one name="owner" entity-name="Owner" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="CAT_OWNER" insert="true" update="true" not-null="false">
<column not-null="false" unique="false" name="`CAT_OWNER_ID`"/>
</many-to-one>
</join>
</subclass>
</hibernate-mapping>
|