Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 8f91a229b5ca8efbccf12e2e7ad04d87610368df (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
<?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.bagduplicate.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" discriminator-value="Person" table="`PERSON`">
		<meta attribute="eclassName" inherit="false">Person</meta>
		<meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/issues/bagduplicate</meta>
		<id name="name" type="java.lang.String">
			<column not-null="true" unique="false" name="`NAME`"/>
		</id>
		<discriminator type="string">
			<column name="`DTYPE`" index="PERSONDTYPE" 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>
		<many-to-one name="father" entity-name="Person" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="PERSON_FATHER" insert="true" update="true" not-null="false">
			<column not-null="false" unique="false" name="`PERSON_FATHER_NAME`"/>
		</many-to-one>
		<many-to-one name="mother" entity-name="Person" lazy="false" cascade="merge,persist,save-update,lock,refresh" foreign-key="PERSON_MOTHER" insert="true" update="true" not-null="false">
			<column not-null="false" unique="false" name="`PERSON_MOTHER_NAME`"/>
		</many-to-one>
		<bag name="children" table="`PERSON_PERSON`" lazy="true" cascade="persist,merge,refresh,save-update,lock">
			<key update="true">
				<column name="`PERSON_CHILDREN_NAME`" unique="false"/>
			</key>
			<many-to-many entity-name="Person" unique="false" foreign-key="PERSON_CHILDREN">
				<column name="`PERSON_NAME`" unique="false"/>
			</many-to-many>
		</bag>
	</class>
</hibernate-mapping>

Back to the top