blob: c5f5273518f2a519019243e81290f0ae99b122ce [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.test.databinding.emfdb.impl.FamilyImpl" entity-name="Family" abstract="false" lazy="false" discriminator-value="Family" table="`family`">
<meta attribute="eclassName">Family</meta>
<meta attribute="epackage">http://www.eclipse.org/emf/emfdb/1.0.0</meta>
<id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler">
<meta attribute="syntheticId">true</meta>
<generator class="native"/>
</id>
<discriminator type="string">
<column name="dtype" index="familydtype" 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">true</meta>
</version>
<property name="string" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`string`"/>
</property>
<list name="persons" lazy="true" cascade="all,delete-orphan">
<key update="true" foreign-key="family_persons">
<column name="`family_persons_e_id`" not-null="false" unique="false"/>
</key>
<list-index column="`family_persons_idx`"/>
<one-to-many entity-name="Person"/>
</list>
</class>
<class name="org.eclipse.emf.test.databinding.emfdb.impl.PersonImpl" entity-name="Person" abstract="false" lazy="false" discriminator-value="Person" table="`person`">
<meta attribute="eclassName">Person</meta>
<meta attribute="epackage">http://www.eclipse.org/emf/emfdb/1.0.0</meta>
<id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler">
<meta attribute="syntheticId">true</meta>
<generator class="native"/>
</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">true</meta>
</version>
<list name="notes" lazy="true" cascade="all,delete-orphan">
<key update="true" foreign-key="person_notes">
<column name="`person_notes_e_id`" not-null="false" unique="false"/>
</key>
<list-index column="`person_notes_idx`"/>
<one-to-many entity-name="Note"/>
</list>
<list name="parents" lazy="true" cascade="merge,persist,save-update,lock,refresh">
<key update="true" foreign-key="person_parents">
<column name="`person_parents_e_id`" not-null="false" unique="false"/>
</key>
<list-index column="`person_parents_idx`"/>
<one-to-many entity-name="Person"/>
</list>
</class>
<class name="org.eclipse.emf.test.databinding.emfdb.impl.NoteImpl" entity-name="Note" abstract="false" lazy="false" discriminator-value="Note" table="`note`">
<meta attribute="eclassName">Note</meta>
<meta attribute="epackage">http://www.eclipse.org/emf/emfdb/1.0.0</meta>
<id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler">
<meta attribute="syntheticId">true</meta>
<generator class="native"/>
</id>
<discriminator type="string">
<column name="dtype" index="notedtype" 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">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>
</class>
</hibernate-mapping>