blob: 13c967723705b66d2f1acb82421f14aeeb7224a5 [file] [log] [blame]
<?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" 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>
<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="merge,persist,save-update,lock,refresh">
<key update="true">
<column name="`person_children_name`" not-null="true" unique="false"/>
</key>
<many-to-many entity-name="Person" unique="false" foreign-key="person_children">
<column name="`person_name`" not-null="true" unique="false"/>
</many-to-many>
</bag>
</class>
</hibernate-mapping>