Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Taal2012-05-14 04:45:27 +0000
committerMartin Taal2012-05-14 04:45:27 +0000
commita466709a72bd977f252e5632184685240efc68f9 (patch)
tree2566e0a6b1a759d7c898a47f7133af46dc77875c /tests/org.eclipse.emf.teneo.hibernate.test/hbm
parent8ffc14f1aa7885d98e442f2c3fb92f7720217f0a (diff)
downloadorg.eclipse.emf.teneo-a466709a72bd977f252e5632184685240efc68f9.tar.gz
org.eclipse.emf.teneo-a466709a72bd977f252e5632184685240efc68f9.tar.xz
org.eclipse.emf.teneo-a466709a72bd977f252e5632184685240efc68f9.zip
jpa2: added elementcollection support
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/hbm')
-rw-r--r--tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.jpa2/ElementCollectionAction_hsqldb_e_o_hibernate.hbm.xml23
-rw-r--r--tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.jpa2/ElementCollectionAction_hsqldb_h_o_hibernate.hbm.xml26
2 files changed, 49 insertions, 0 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.jpa2/ElementCollectionAction_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.jpa2/ElementCollectionAction_hsqldb_e_o_hibernate.hbm.xml
new file mode 100644
index 000000000..6eb962a39
--- /dev/null
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.jpa2/ElementCollectionAction_hsqldb_e_o_hibernate.hbm.xml
@@ -0,0 +1,23 @@
+<?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.jpa2.elementcollection.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" table="`ITEM`">
+ <meta attribute="eclassName" inherit="false">Item</meta>
+ <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/jpa2/elementcollection</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>
+ <version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
+ <meta attribute="syntheticVersion" inherit="false">true</meta>
+ </version>
+ <list name="names" table="`ITEM_NAMES`" lazy="false" cascade="all,delete-orphan">
+ <key update="true">
+ <column name="`ITEM_NAMES_E_ID`" unique="false"/>
+ </key>
+ <list-index column="`ITEM_NAMES_IDX`"/>
+ <element type="java.lang.String"/>
+ </list>
+ </class>
+</hibernate-mapping> \ No newline at end of file
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.jpa2/ElementCollectionAction_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.jpa2/ElementCollectionAction_hsqldb_h_o_hibernate.hbm.xml
new file mode 100644
index 000000000..ad13746c5
--- /dev/null
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.emf.jpa2/ElementCollectionAction_hsqldb_h_o_hibernate.hbm.xml
@@ -0,0 +1,26 @@
+<?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.jpa2.elementcollection.impl.ItemImpl" entity-name="Item" abstract="false" lazy="false" discriminator-value="Item" table="`ITEM`">
+ <meta attribute="eclassName" inherit="false">Item</meta>
+ <meta attribute="epackage" inherit="false">http://www.eclipse.org/emf/teneo/samples/emf/jpa2/elementcollection</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="ITEMDTYPE" 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>
+ <list name="names" table="`ITEM_NAMES`" lazy="false" cascade="all,delete-orphan">
+ <key update="true">
+ <column name="`ITEM_NAMES_E_ID`" unique="false"/>
+ </key>
+ <list-index column="`ITEM_NAMES_IDX`"/>
+ <element type="java.lang.String"/>
+ </list>
+ </class>
+</hibernate-mapping> \ No newline at end of file

Back to the top