diff options
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/BagDuplicateAction_hsqldb_h_o_hibernate.hbm.xml')
-rw-r--r-- | tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/BagDuplicateAction_hsqldb_h_o_hibernate.hbm.xml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/BagDuplicateAction_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/BagDuplicateAction_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..8f91a229b --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.issues/BagDuplicateAction_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,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>
\ No newline at end of file |