diff options
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/EmbeddedAction_hsqldb_h_o_hibernate.hbm.xml')
-rw-r--r-- | tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/EmbeddedAction_hsqldb_h_o_hibernate.hbm.xml | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/EmbeddedAction_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/EmbeddedAction_hsqldb_h_o_hibernate.hbm.xml new file mode 100644 index 000000000..d0056d104 --- /dev/null +++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/EmbeddedAction_hsqldb_h_o_hibernate.hbm.xml @@ -0,0 +1,108 @@ +<?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.embedded.impl.EmbedderImpl" entity-name="Embedder" abstract="false" lazy="false" discriminator-value="Embedder" table="`EMBEDDER`"> + <meta attribute="eclassName" inherit="false">Embedder</meta> + <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/annotations/embedded</meta> + <id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler"> + <meta attribute="syntheticId" inherit="false">true</meta> + <generator class="native"/> + </id> + <discriminator type="string"> + <column name="`DTYPE`" index="EMBEDDERDTYPE" 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> + <component name="firstEmbedded" class="org.eclipse.emf.teneo.samples.emf.annotations.embedded.impl.EmbeddableImpl"> + <meta attribute="eclassName" inherit="false">Embeddable</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/embedded</meta> + <property name="myString" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`COLUMNSTRING3`"/> + </property> + <property name="myInteger" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`FIRSTEMBEDDED_MYINTEGER`"/> + </property> + </component> + <component name="secondEmbedded" class="org.eclipse.emf.teneo.samples.emf.annotations.embedded.impl.EmbeddableImpl"> + <meta attribute="eclassName" inherit="false">Embeddable</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/embedded</meta> + <property name="myString" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`COLUMNSTRING1`"/> + </property> + <property name="myInteger" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`COLUMNINTEGER1`"/> + </property> + </component> + <component name="thirdEmbedded" class="org.eclipse.emf.teneo.samples.emf.annotations.embedded.impl.EmbeddableImpl"> + <meta attribute="eclassName" inherit="false">Embeddable</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/embedded</meta> + <property name="myString" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`COLUMNSTRING2`"/> + </property> + <property name="myInteger" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`COLUMNINTEGER2`"/> + </property> + </component> + <list name="fourthEmbedded" lazy="true" cascade="all,delete-orphan"> + <key update="true"> + <column name="`EMBEDDER_FOURTHEMBEDDED_E_ID`" unique="false"/> + </key> + <list-index column="`EMBEDDER_FOURTHEMBEDDED_IDX`"/> + <composite-element class="org.eclipse.emf.teneo.samples.emf.annotations.embedded.impl.EmbeddableImpl"> + <property name="myString" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`MYSTRING`"/> + </property> + <property name="myInteger" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`MYINTEGER`"/> + </property> + </composite-element> + </list> + <component name="fifthEmbedded" class="org.eclipse.emf.teneo.samples.emf.annotations.embedded.impl.EmbeddableImpl"> + <meta attribute="eclassName" inherit="false">Embeddable</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/embedded</meta> + <property name="myString" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`FIFTHEMBEDDED_MYSTRING`"/> + </property> + <property name="myInteger" lazy="false" insert="true" update="true" not-null="false" unique="false" type="int"> + <column not-null="false" unique="false" name="`FIFTHEMBEDDED_MYINTEGER`"/> + </property> + </component> + <component name="alsoEmbeddable" class="org.eclipse.emf.teneo.samples.emf.annotations.embedded.impl.AlsoEmbeddableImpl"> + <meta attribute="eclassName" inherit="false">AlsoEmbeddable</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/embedded</meta> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`ALSOEMBEDDABLE_NAME`"/> + </property> + </component> + <component name="anotherEmbedded" class="org.eclipse.emf.teneo.samples.emf.annotations.embedded.impl.AnotherEmbeddableImpl"> + <meta attribute="eclassName" inherit="false">AnotherEmbeddable</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/embedded</meta> + <property name="anotherName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`ANOTHEREMBEDDED_ANOTHERNAME`"/> + </property> + <list name="aOneToMany" lazy="true" cascade="persist,merge,refresh,save-update,lock"> + <key update="true"> + <column name="`ANOTHEREMBEDDABLE_AONETOMANY_E_ID`" unique="false"/> + </key> + <list-index column="`ANOTHEREMBEDDABLE_AONETOMANY_IDX`"/> + <composite-element class="org.eclipse.emf.teneo.samples.emf.annotations.embedded.impl.AOneToManyImpl"> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`ANOTHEREMBEDDED_NAME`"/> + </property> + </composite-element> + </list> + <component name="nestedEmbedded" class="org.eclipse.emf.teneo.samples.emf.annotations.embedded.impl.NestedEmbeddableImpl"> + <meta attribute="eclassName" inherit="false">NestedEmbeddable</meta> + <meta attribute="epackage">http://www.eclipse.org/emf/teneo/samples/emf/annotations/embedded</meta> + <property name="nestedName" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="false" unique="false" name="`NE_NESTEDNAME`"/> + </property> + </component> + <property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String"> + <column not-null="true" unique="false" name="`ANOTHEREMBEDDED_NAME`"/> + </property> + </component> + </class> +</hibernate-mapping>
\ No newline at end of file |