Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Taal2012-11-16 19:18:26 +0000
committerMartin Taal2012-11-16 19:18:26 +0000
commitc2589b7076d2e1cabd099fd2883bdb5416d22f01 (patch)
tree17885e04b7a9dd343a025ccf81d36076e5de6d54 /tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations
parent36329b3c745d0d8ef229ac95ee85ae4cf906c73c (diff)
downloadorg.eclipse.emf.teneo-c2589b7076d2e1cabd099fd2883bdb5416d22f01.tar.gz
org.eclipse.emf.teneo-c2589b7076d2e1cabd099fd2883bdb5416d22f01.tar.xz
org.eclipse.emf.teneo-c2589b7076d2e1cabd099fd2883bdb5416d22f01.zip
Latest audit changes, let LOB annotation also work for maxoccurs is unbounded
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations')
-rw-r--r--tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LobAction_hsqldb_e_o_hibernate.hbm.xml24
-rw-r--r--tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LobAction_hsqldb_h_o_hibernate.hbm.xml24
-rw-r--r--tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LobAction_hsqldb_x_o_hibernate.hbm.xml26
3 files changed, 58 insertions, 16 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LobAction_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LobAction_hsqldb_e_o_hibernate.hbm.xml
index 9f8a034f1..3828bddff 100644
--- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LobAction_hsqldb_e_o_hibernate.hbm.xml
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LobAction_hsqldb_e_o_hibernate.hbm.xml
@@ -20,6 +20,15 @@
<property name="photo" lazy="false" insert="true" update="true" not-null="false" unique="false" type="binary">
<column not-null="false" unique="false" name="`PHOTO`" length="1000000"/>
</property>
+ <list name="texts" table="`PERSON_TEXTS`" lazy="true" cascade="all">
+ <key update="true">
+ <column name="`PERSON_TEXTS_ID`" unique="false"/>
+ </key>
+ <list-index column="`PERSON_TEXTS_IDX`"/>
+ <element not-null="false" unique="false" type="text">
+ <column not-null="false" unique="false" name="`TEXTS`" length="1000000"/>
+ </element>
+ </list>
</class>
<class name="org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditCommitInfoImpl" entity-name="TeneoAuditCommitInfo" abstract="false" lazy="false" table="`TENEOAUDITCOMMITINFO`">
<meta attribute="eclassName" inherit="false">TeneoAuditCommitInfo</meta>
@@ -89,12 +98,17 @@
<property name="address" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`ADDRESS`"/>
</property>
- <array name="photo" table="`PERSONAUDITING_PHOTOAUDITING`" cascade="all">
+ <property name="photo" lazy="false" insert="true" update="true" not-null="false" unique="false" type="binary">
+ <column not-null="false" unique="false" name="`PHOTO`" length="1000000"/>
+ </property>
+ <list name="texts" table="`PERSONAUDITING_TEXTSAUDITING`" lazy="true" cascade="all">
<key update="true">
- <column name="`PERSONAUDITING_PHOTO_TENEO_AUDIT_ID`" unique="false"/>
+ <column name="`PERSONAUDITING_TEXTS_TENEO_AUDIT_ID`" unique="false"/>
</key>
- <list-index column="`PERSONAUDITING_PHOTO_IDX`"/>
- <element type="byte"/>
- </array>
+ <list-index column="`PERSONAUDITING_TEXTS_IDX`"/>
+ <element not-null="false" unique="false" type="text">
+ <column not-null="false" unique="false" name="`TEXTS`" length="1000000"/>
+ </element>
+ </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.test.emf.annotations/LobAction_hsqldb_h_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LobAction_hsqldb_h_o_hibernate.hbm.xml
index bf4ee144d..61796527d 100644
--- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LobAction_hsqldb_h_o_hibernate.hbm.xml
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LobAction_hsqldb_h_o_hibernate.hbm.xml
@@ -23,6 +23,15 @@
<property name="photo" lazy="false" insert="true" update="true" not-null="false" unique="false" type="binary">
<column not-null="false" unique="false" name="`PHOTO`" length="1000000"/>
</property>
+ <list name="texts" table="`PERSON_TEXTS`" lazy="true" cascade="all">
+ <key update="true">
+ <column name="`PERSON_TEXTS_ID`" unique="false"/>
+ </key>
+ <list-index column="`PERSON_TEXTS_IDX`"/>
+ <element not-null="false" unique="false" type="text">
+ <column not-null="false" unique="false" name="`TEXTS`" length="1000000"/>
+ </element>
+ </list>
</class>
<class name="org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditCommitInfoImpl" entity-name="TeneoAuditCommitInfo" abstract="false" lazy="false" discriminator-value="TeneoAuditCommitInfo" table="`TENEOAUDITCOMMITINFO`">
<meta attribute="eclassName" inherit="false">TeneoAuditCommitInfo</meta>
@@ -98,12 +107,17 @@
<property name="address" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`ADDRESS`"/>
</property>
- <array name="photo" table="`PERSONAUDITING_PHOTOAUDITING`" cascade="all">
+ <property name="photo" lazy="false" insert="true" update="true" not-null="false" unique="false" type="binary">
+ <column not-null="false" unique="false" name="`PHOTO`" length="1000000"/>
+ </property>
+ <list name="texts" table="`PERSONAUDITING_TEXTSAUDITING`" lazy="true" cascade="all">
<key update="true">
- <column name="`PERSONAUDITING_PHOTO_TENEO_AUDIT_ID`" unique="false"/>
+ <column name="`PERSONAUDITING_TEXTS_TENEO_AUDIT_ID`" unique="false"/>
</key>
- <list-index column="`PERSONAUDITING_PHOTO_IDX`"/>
- <element type="byte"/>
- </array>
+ <list-index column="`PERSONAUDITING_TEXTS_IDX`"/>
+ <element not-null="false" unique="false" type="text">
+ <column not-null="false" unique="false" name="`TEXTS`" length="1000000"/>
+ </element>
+ </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.test.emf.annotations/LobAction_hsqldb_x_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LobAction_hsqldb_x_o_hibernate.hbm.xml
index 91dce93cb..4d329cd68 100644
--- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LobAction_hsqldb_x_o_hibernate.hbm.xml
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.test.emf.annotations/LobAction_hsqldb_x_o_hibernate.hbm.xml
@@ -27,6 +27,15 @@
<property name="photo" lazy="false" insert="true" update="true" not-null="false" unique="false" type="binary">
<column not-null="false" unique="false" name="`PHOTO`" length="1000000"/>
</property>
+ <list name="texts" table="`PERSON_TEXTS`" lazy="true" cascade="all">
+ <key update="true">
+ <column name="`PERSON_TEXTS_E_ID`" unique="false"/>
+ </key>
+ <list-index column="`PERSON_TEXTS_IDX`"/>
+ <element not-null="false" unique="false" type="text">
+ <column not-null="false" unique="false" name="`TEXTS`" length="10000"/>
+ </element>
+ </list>
</class>
<class name="org.eclipse.emf.teneo.hibernate.auditing.model.teneoauditing.impl.TeneoAuditEntryImpl" entity-name="TeneoAuditEntry" abstract="false" lazy="false" discriminator-value="TeneoAuditEntry" table="`TENEOAUDITENTRY`">
<meta attribute="eclassName" inherit="false">TeneoAuditEntry</meta>
@@ -115,15 +124,20 @@
<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>
- <property name="address" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
+ <property name="address" lazy="false" insert="true" update="true" not-null="false" unique="false" type="text">
<column not-null="false" unique="false" name="`ADDRESS`"/>
</property>
- <array name="photo" table="`PERSONAUDITING_PHOTOAUDITING`" cascade="all">
+ <property name="photo" lazy="false" insert="true" update="true" not-null="false" unique="false" type="binary">
+ <column not-null="false" unique="false" name="`PHOTO`" length="1000000"/>
+ </property>
+ <list name="texts" table="`PERSONAUDITING_TEXTSAUDITING`" lazy="true" cascade="all">
<key update="true">
- <column name="`PERSONAUDITING_PHOTO_E_ID`" unique="false"/>
+ <column name="`PERSONAUDITING_TEXTS_E_ID`" unique="false"/>
</key>
- <list-index column="`PERSONAUDITING_PHOTO_IDX`"/>
- <element type="byte"/>
- </array>
+ <list-index column="`PERSONAUDITING_TEXTS_IDX`"/>
+ <element not-null="false" unique="false" type="text">
+ <column not-null="false" unique="false" name="`TEXTS`" length="10000"/>
+ </element>
+ </list>
</subclass>
</hibernate-mapping> \ No newline at end of file

Back to the top