[hibernate-commits] Hibernate SVN: r19078 - core/trunk/testsuite/src/test/java/org/hibernate/test/typedonetoone.
hibernate-commits at lists.jboss.org
hibernate-commits at lists.jboss.org
Mon Mar 22 14:10:14 EDT 2010
Author: stliu
Date: 2010-03-22 14:10:13 -0400 (Mon, 22 Mar 2010)
New Revision: 19078
Modified:
core/trunk/testsuite/src/test/java/org/hibernate/test/typedonetoone/Customer.hbm.xml
Log:
HHH-4732 quote column name as it is a keyword on teradata
Modified: core/trunk/testsuite/src/test/java/org/hibernate/test/typedonetoone/Customer.hbm.xml
===================================================================
--- core/trunk/testsuite/src/test/java/org/hibernate/test/typedonetoone/Customer.hbm.xml 2010-03-22 18:07:19 UTC (rev 19077)
+++ core/trunk/testsuite/src/test/java/org/hibernate/test/typedonetoone/Customer.hbm.xml 2010-03-22 18:10:13 UTC (rev 19078)
@@ -40,12 +40,12 @@
<class name="Address"
table="Address"
entity-name="BillingAddress"
- where="type='BILLING'"
- check="type in ('BILLING', 'SHIPPING')">
+ where="add_type='BILLING'"
+ check="add_type in ('BILLING', 'SHIPPING')">
<composite-id name="addressId">
<key-property name="customerId"/>
- <key-property name="type"/>
+ <key-property name="type" column="add_type"/>
</composite-id>
<property name="street" not-null="true"/>
@@ -63,11 +63,11 @@
<class name="Address"
table="Address"
entity-name="ShippingAddress"
- where="type='SHIPPING'">
+ where="add_type='SHIPPING'">
<composite-id name="addressId">
<key-property name="customerId"/>
- <key-property name="type"/>
+ <key-property name="type" column="add_type"/>
</composite-id>
<property name="street" not-null="true"/>
More information about the hibernate-commits
mailing list