blob: a9070aa7b2443830fcb295dad5ddb7b8722b8957 [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.bz247785.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/bz247785</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`" not-null="false" unique="false"/>
</key>
<one-to-many entity-name="Cat"/>
</bag>
</class>
<class name="org.eclipse.emf.teneo.samples.issues.bz247785.bz247785Sub.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/bz247785/sub</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="dtype" index="ANIMALdtype" 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>
<subclass name="org.eclipse.emf.teneo.samples.issues.bz247785.bz247785Sub.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/bz247785/sub</meta>
<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>
</subclass>
</hibernate-mapping>