blob: 456e8bb592c5ab98399eb35e10c7549ba937ac3c [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.emf.annotations.various.impl.ParentImpl" entity-name="Parent" abstract="false" lazy="false" batch-size="9" discriminator-value="Parent" table="`parent`">
<meta attribute="eclassName">Parent</meta>
<meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/various</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" force="true">
<column name="dtype" index="parentdtype" 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="children" batch-size="11" lazy="true" cascade="merge,persist,save-update,lock,refresh">
<key update="true" foreign-key="parent_children">
<column name="`parent_children_e_id`" not-null="false" unique="false"/>
</key>
<list-index column="`parent_children_idx`"/>
<one-to-many entity-name="Child"/>
</list>
<property name="totalPeople" lazy="false" not-null="false" type="int">
<formula>(select count(*) from parent)</formula>
</property>
</class>
<subclass name="org.eclipse.emf.teneo.samples.emf.annotations.various.impl.ChildImpl" entity-name="Child" abstract="false" lazy="false" extends="Parent" discriminator-value="Child">
<meta attribute="eclassName">Child</meta>
<meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/various</meta>
</subclass>
<class name="org.eclipse.emf.teneo.samples.emf.annotations.various.impl.ImmutableCityImpl" entity-name="ImmutableCity" abstract="false" lazy="false" mutable="false" table="`immutablecity`">
<meta attribute="eclassName">ImmutableCity</meta>
<meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/various</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>
<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>
<list name="parents" mutable="false" lazy="true" cascade="merge,persist,save-update,lock,refresh">
<key update="true" foreign-key="immutablecity_parents">
<column name="`immutablecity_parents_e_id`" not-null="false" unique="false"/>
</key>
<list-index column="`immutablecity_parents_idx`"/>
<one-to-many entity-name="Parent"/>
</list>
</class>
</hibernate-mapping>