Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormtaal2009-08-21 15:02:10 +0000
committermtaal2009-08-21 15:02:10 +0000
commitcfb892bc19aa8336cacfa8e855959d1e1b28bc49 (patch)
treec016f9f9cd9a8f1d1ff1dc1c50da44c55757b36b /tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample
parent0ca3dcb878dbb3da6b6f703b1bb29c020ff190f6 (diff)
downloadorg.eclipse.emf.teneo-cfb892bc19aa8336cacfa8e855959d1e1b28bc49.tar.gz
org.eclipse.emf.teneo-cfb892bc19aa8336cacfa8e855959d1e1b28bc49.tar.xz
org.eclipse.emf.teneo-cfb892bc19aa8336cacfa8e855959d1e1b28bc49.zip
Support for EAV Schema and Mapping
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample')
-rw-r--r--tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_a_o_hibernate.hbm.xml34
-rw-r--r--tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_e_o_hibernate.hbm.xml34
-rw-r--r--tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_s_o_hibernate.hbm.xml42
3 files changed, 36 insertions, 74 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_a_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_a_o_hibernate.hbm.xml
index 848355694..0316c0df0 100644
--- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_a_o_hibernate.hbm.xml
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_a_o_hibernate.hbm.xml
@@ -191,9 +191,9 @@
<column name="`eannotation_e_id`" not-null="true" unique="false"/>
</key>
<list-index column="`eannotation_contents_idx`"/>
- <many-to-any id-type="long">
- <column not-null="true" unique="false" name="`contents_type`"/>
- <column not-null="true" unique="false" name="`contents_id`"/>
+ <many-to-any id-type="long" meta-type="string">
+ <column not-null="false" unique="false" name="`contents_type`"/>
+ <column not-null="false" unique="false" name="`contents_id`"/>
</many-to-any>
</list>
<list name="references" table="`eannotation_references`" lazy="true" cascade="merge,persist,save-update,lock,refresh">
@@ -201,9 +201,9 @@
<column name="`eannotation_e_id`" not-null="true" unique="false"/>
</key>
<list-index column="`eannotation_references_idx`"/>
- <many-to-any id-type="long">
- <column not-null="true" unique="false" name="`references_type`"/>
- <column not-null="true" unique="false" name="`references_id`"/>
+ <many-to-any id-type="long" meta-type="string">
+ <column not-null="false" unique="false" name="`references_type`"/>
+ <column not-null="false" unique="false" name="`references_id`"/>
</many-to-any>
</list>
</subclass>
@@ -493,23 +493,11 @@
<meta attribute="syntheticVersion">true</meta>
</version>
<property name="fme_feature" type="java.lang.String"/>
- <list name="mixed" table="`any_anytype_mixed`" lazy="true" cascade="all,delete-orphan">
- <key update="true">
- <column name="`any_anytype_mixed_e_id`" not-null="false" unique="false"/>
- </key>
- <list-index column="`any_anytype_mixed_idx`"/>
- <one-to-many entity-name="AnyType_mixed"/>
- </list>
- <list name="anyAttribute" table="`any_anytype_anyattribute`" lazy="true" cascade="all,delete-orphan">
- <key update="true">
- <column name="`any_anytype_anyattribute_e_id`" not-null="false" unique="false"/>
- </key>
- <list-index column="`any_anytype_anyattribute_idx`"/>
- <one-to-many entity-name="AnyType_anyAttribute"/>
- </list>
- <property name="fme_mixed_text" type="java.lang.String"/>
- <property name="fme_mixed_cdata" type="java.lang.String"/>
- <property name="fme_mixed_comment" type="java.lang.String"/>
+ <property name="any_fme_any_data" type="java.lang.String"/>
+ <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all">
+ <column not-null="false" unique="false" name="`any_type`"/>
+ <column not-null="false" unique="false" name="`any_id`"/>
+ </any>
</class>
<class name="org.eclipse.emf.ecore.xml.type.impl.ProcessingInstructionImpl" entity-name="ProcessingInstruction" abstract="false" lazy="false" discriminator-value="ProcessingInstruction" table="`processinginstruction`">
<meta attribute="eclassName">ProcessingInstruction</meta>
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_e_o_hibernate.hbm.xml
index 979d8096b..6b441b3aa 100644
--- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_e_o_hibernate.hbm.xml
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_e_o_hibernate.hbm.xml
@@ -208,9 +208,9 @@
<column name="`eannotation_e_id`" not-null="true" unique="false"/>
</key>
<list-index column="`eannotation_contents_idx`"/>
- <many-to-any id-type="long">
- <column not-null="true" unique="false" name="`contents_type`"/>
- <column not-null="true" unique="false" name="`contents_id`"/>
+ <many-to-any id-type="long" meta-type="string">
+ <column not-null="false" unique="false" name="`contents_type`"/>
+ <column not-null="false" unique="false" name="`contents_id`"/>
</many-to-any>
</list>
<list name="references" table="`eannotation_references`" lazy="true" cascade="merge,persist,save-update,lock,refresh">
@@ -218,9 +218,9 @@
<column name="`eannotation_e_id`" not-null="true" unique="false"/>
</key>
<list-index column="`eannotation_references_idx`"/>
- <many-to-any id-type="long">
- <column not-null="true" unique="false" name="`references_type`"/>
- <column not-null="true" unique="false" name="`references_id`"/>
+ <many-to-any id-type="long" meta-type="string">
+ <column not-null="false" unique="false" name="`references_type`"/>
+ <column not-null="false" unique="false" name="`references_id`"/>
</many-to-any>
</list>
</joined-subclass>
@@ -545,23 +545,11 @@
<meta attribute="syntheticVersion">true</meta>
</version>
<property name="fme_feature" type="java.lang.String"/>
- <list name="mixed" table="`any_anytype_mixed`" lazy="true" cascade="all,delete-orphan">
- <key update="true">
- <column name="`any_anytype_mixed_e_id`" not-null="false" unique="false"/>
- </key>
- <list-index column="`any_anytype_mixed_idx`"/>
- <one-to-many entity-name="AnyType_mixed"/>
- </list>
- <list name="anyAttribute" table="`any_anytype_anyattribute`" lazy="true" cascade="all,delete-orphan">
- <key update="true">
- <column name="`any_anytype_anyattribute_e_id`" not-null="false" unique="false"/>
- </key>
- <list-index column="`any_anytype_anyattribute_idx`"/>
- <one-to-many entity-name="AnyType_anyAttribute"/>
- </list>
- <property name="fme_mixed_text" type="java.lang.String"/>
- <property name="fme_mixed_cdata" type="java.lang.String"/>
- <property name="fme_mixed_comment" type="java.lang.String"/>
+ <property name="any_fme_any_data" type="java.lang.String"/>
+ <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all">
+ <column not-null="false" unique="false" name="`any_type`"/>
+ <column not-null="false" unique="false" name="`any_id`"/>
+ </any>
</class>
<class name="org.eclipse.emf.ecore.xml.type.impl.ProcessingInstructionImpl" entity-name="ProcessingInstruction" abstract="false" lazy="false" table="`processinginstruction`">
<meta attribute="eclassName">ProcessingInstruction</meta>
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_s_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_s_o_hibernate.hbm.xml
index 887008d8f..6b441b3aa 100644
--- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_s_o_hibernate.hbm.xml
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.sample/EcoreAction_mysql_s_o_hibernate.hbm.xml
@@ -208,9 +208,9 @@
<column name="`eannotation_e_id`" not-null="true" unique="false"/>
</key>
<list-index column="`eannotation_contents_idx`"/>
- <many-to-any id-type="long">
- <column not-null="true" unique="false" name="`contents_type`"/>
- <column not-null="true" unique="false" name="`contents_id`"/>
+ <many-to-any id-type="long" meta-type="string">
+ <column not-null="false" unique="false" name="`contents_type`"/>
+ <column not-null="false" unique="false" name="`contents_id`"/>
</many-to-any>
</list>
<list name="references" table="`eannotation_references`" lazy="true" cascade="merge,persist,save-update,lock,refresh">
@@ -218,9 +218,9 @@
<column name="`eannotation_e_id`" not-null="true" unique="false"/>
</key>
<list-index column="`eannotation_references_idx`"/>
- <many-to-any id-type="long">
- <column not-null="true" unique="false" name="`references_type`"/>
- <column not-null="true" unique="false" name="`references_id`"/>
+ <many-to-any id-type="long" meta-type="string">
+ <column not-null="false" unique="false" name="`references_type`"/>
+ <column not-null="false" unique="false" name="`references_id`"/>
</many-to-any>
</list>
</joined-subclass>
@@ -259,12 +259,10 @@
<property name="interface" lazy="false" insert="true" update="true" not-null="false" unique="false" type="boolean">
<column not-null="false" unique="false" name="`interface`"/>
</property>
- <list name="eSuperTypes" lazy="true" cascade="merge,persist,save-update,lock,refresh">
- <key update="true" foreign-key="eclass_esupertypes">
- <column name="`eclass_esupertypes_e_id`" not-null="false" unique="false"/>
- </key>
+ <list name="eSuperTypes" lazy="true" cascade="merge,persist,save-update,lock,refresh" table="`eclass_eclass`">
+ <key/>
<list-index column="`eclass_esupertypes_idx`"/>
- <one-to-many entity-name="EClass"/>
+ <many-to-many entity-name="EClass" unique="false" foreign-key="eclass_esupertypes"/>
</list>
<list name="eOperations" lazy="true" cascade="all,delete-orphan">
<key update="true" foreign-key="eclass_eoperations">
@@ -547,23 +545,11 @@
<meta attribute="syntheticVersion">true</meta>
</version>
<property name="fme_feature" type="java.lang.String"/>
- <list name="mixed" table="`any_anytype_mixed`" lazy="true" cascade="all,delete-orphan">
- <key update="true">
- <column name="`any_anytype_mixed_e_id`" not-null="false" unique="false"/>
- </key>
- <list-index column="`any_anytype_mixed_idx`"/>
- <one-to-many entity-name="AnyType_mixed"/>
- </list>
- <list name="anyAttribute" table="`any_anytype_anyattribute`" lazy="true" cascade="all,delete-orphan">
- <key update="true">
- <column name="`any_anytype_anyattribute_e_id`" not-null="false" unique="false"/>
- </key>
- <list-index column="`any_anytype_anyattribute_idx`"/>
- <one-to-many entity-name="AnyType_anyAttribute"/>
- </list>
- <property name="fme_mixed_text" type="java.lang.String"/>
- <property name="fme_mixed_cdata" type="java.lang.String"/>
- <property name="fme_mixed_comment" type="java.lang.String"/>
+ <property name="any_fme_any_data" type="java.lang.String"/>
+ <any id-type="long" meta-type="string" name="any_fme_any_reference" cascade="all">
+ <column not-null="false" unique="false" name="`any_type`"/>
+ <column not-null="false" unique="false" name="`any_id`"/>
+ </any>
</class>
<class name="org.eclipse.emf.ecore.xml.type.impl.ProcessingInstructionImpl" entity-name="ProcessingInstruction" abstract="false" lazy="false" table="`processinginstruction`">
<meta attribute="eclassName">ProcessingInstruction</meta>

Back to the top