Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Taal2012-12-20 11:59:14 +0000
committerMartin Taal2012-12-20 11:59:14 +0000
commita36b30f14322d74069823336d1a6e01dbfe68ae0 (patch)
treeff2cc1c1b143bc3bef99d058f4b91e9f8ae42bef /tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/NoCollectionOwnerAction_hsqldb_e_o_hibernate.hbm.xml
parent6d44c46db3f64cc1f15cc6f72062eaf9b3f0762c (diff)
downloadorg.eclipse.emf.teneo-a36b30f14322d74069823336d1a6e01dbfe68ae0.tar.gz
org.eclipse.emf.teneo-a36b30f14322d74069823336d1a6e01dbfe68ae0.tar.xz
org.eclipse.emf.teneo-a36b30f14322d74069823336d1a6e01dbfe68ae0.zip
Fixes issue 396988 - Also support foreign key attribute on key element in mapping
Diffstat (limited to 'tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/NoCollectionOwnerAction_hsqldb_e_o_hibernate.hbm.xml')
-rw-r--r--tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/NoCollectionOwnerAction_hsqldb_e_o_hibernate.hbm.xml18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/NoCollectionOwnerAction_hsqldb_e_o_hibernate.hbm.xml b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/NoCollectionOwnerAction_hsqldb_e_o_hibernate.hbm.xml
index eacb5f149..edfa33c7a 100644
--- a/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/NoCollectionOwnerAction_hsqldb_e_o_hibernate.hbm.xml
+++ b/tests/org.eclipse.emf.teneo.hibernate.test/hbm/org.eclipse.emf.teneo.hibernate.test.issues/NoCollectionOwnerAction_hsqldb_e_o_hibernate.hbm.xml
@@ -54,7 +54,7 @@
<column not-null="false" unique="false" name="`HOTEL`"/>
</property>
<list name="comments" table="`CUSTOMER_COMMENTS`" lazy="true" cascade="all">
- <key update="true">
+ <key foreign-key="CUSTOMER_COMMENTS_KEY" update="true">
<column name="`CUSTOMER_COMMENTS_E_ID`" unique="false"/>
</key>
<list-index column="`CUSTOMER_COMMENTS_IDX`"/>
@@ -102,7 +102,7 @@
<meta attribute="syntheticVersion" inherit="false">true</meta>
</version>
<list name="prices" table="`PRICECATEGORY_PRICES`" lazy="true" cascade="all">
- <key update="true">
+ <key foreign-key="PRICECATEGORY_PRICES_KEY" update="true">
<column name="`PRICECATEGORY_PRICES_NAME`" unique="false"/>
</key>
<list-index column="`PRICECATEGORY_PRICES_IDX`"/>
@@ -133,7 +133,7 @@
<column not-null="false" unique="false" name="`CUSTOMER_CUSTOMER_E_ID`"/>
</many-to-one>
<list name="comments" table="`ORDER_COMMENTS`" lazy="true" cascade="all">
- <key update="true">
+ <key foreign-key="ORDER_COMMENTS_KEY" update="true">
<column name="`ORDER_COMMENTS_E_ID`" unique="false"/>
</key>
<list-index column="`ORDER_COMMENTS_IDX`"/>
@@ -320,7 +320,7 @@
<column not-null="false" unique="false" name="`HOTEL`"/>
</property>
<list name="comments" table="`CUSTOMERAUDITING_COMMENTSAUDITING`" lazy="true" cascade="all">
- <key update="true">
+ <key foreign-key="CUSTOMERAUDITING_COMMENTS_KEY" update="true">
<column name="`CUSTOMERAUDITING_COMMENTS_TENEO_AUDIT_ID`" unique="false"/>
</key>
<list-index column="`CUSTOMERAUDITING_COMMENTS_IDX`"/>
@@ -379,14 +379,14 @@
<column not-null="false" unique="false" name="`NAME`"/>
</property>
<list name="products" table="`PRODUCTCATEGORYAUDITING_PRODUCTSAUDITING`" lazy="true" cascade="all">
- <key update="true">
+ <key foreign-key="PRODUCTCATEGORYAUDITING_PRODUCTS_KEY" update="true">
<column name="`PRODUCTCATEGORYAUDITING_PRODUCTS_TENEO_AUDIT_ID`" unique="false"/>
</key>
<list-index column="`PRODUCTCATEGORYAUDITING_PRODUCTS_IDX`"/>
<element type="java.lang.String"/>
</list>
<list name="subCategorys" table="`PRODUCTCATEGORYAUDITING_SUBCATEGORYSAUDITING`" lazy="true" cascade="all">
- <key update="true">
+ <key foreign-key="PRODUCTCATEGORYAUDITING_SUBCATEGORYS_KEY" update="true">
<column name="`PRODUCTCATEGORYAUDITING_SUBCATEGORYS_TENEO_AUDIT_ID`" unique="false"/>
</key>
<list-index column="`PRODUCTCATEGORYAUDITING_SUBCATEGORYS_IDX`"/>
@@ -448,7 +448,7 @@
<column not-null="false" unique="false" name="`NAME`"/>
</property>
<list name="prices" table="`PRICECATEGORYAUDITING_PRICESAUDITING`" lazy="true" cascade="all">
- <key update="true">
+ <key foreign-key="PRICECATEGORYAUDITING_PRICES_KEY" update="true">
<column name="`PRICECATEGORYAUDITING_PRICES_TENEO_AUDIT_ID`" unique="false"/>
</key>
<list-index column="`PRICECATEGORYAUDITING_PRICES_IDX`"/>
@@ -507,7 +507,7 @@
<column not-null="false" unique="false" name="`NUMBER`"/>
</property>
<list name="transactions" table="`ORDERAUDITING_TRANSACTIONSAUDITING`" lazy="true" cascade="all">
- <key update="true">
+ <key foreign-key="ORDERAUDITING_TRANSACTIONS_KEY" update="true">
<column name="`ORDERAUDITING_TRANSACTIONS_TENEO_AUDIT_ID`" unique="false"/>
</key>
<list-index column="`ORDERAUDITING_TRANSACTIONS_IDX`"/>
@@ -517,7 +517,7 @@
<column not-null="false" unique="false" name="`CUSTOMER`"/>
</property>
<list name="comments" table="`ORDERAUDITING_COMMENTSAUDITING`" lazy="true" cascade="all">
- <key update="true">
+ <key foreign-key="ORDERAUDITING_COMMENTS_KEY" update="true">
<column name="`ORDERAUDITING_COMMENTS_TENEO_AUDIT_ID`" unique="false"/>
</key>
<list-index column="`ORDERAUDITING_COMMENTS_IDX`"/>

Back to the top