[hibernate-commits] Hibernate SVN: r19077 - core/trunk/testsuite/src/test/java/org/hibernate/test/typedmanytoone.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Mon Mar 22 14:07:19 EDT 2010


Author: stliu
Date: 2010-03-22 14:07:19 -0400 (Mon, 22 Mar 2010)
New Revision: 19077

Modified:
   core/trunk/testsuite/src/test/java/org/hibernate/test/typedmanytoone/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/typedmanytoone/Customer.hbm.xml
===================================================================
--- core/trunk/testsuite/src/test/java/org/hibernate/test/typedmanytoone/Customer.hbm.xml	2010-03-22 18:04:54 UTC (rev 19076)
+++ core/trunk/testsuite/src/test/java/org/hibernate/test/typedmanytoone/Customer.hbm.xml	2010-03-22 18:07:19 UTC (rev 19077)
@@ -46,14 +46,14 @@
 	<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')"
 		select-before-update="true" 
 		dynamic-update="true">
 	
 		<composite-id name="addressId"> 
 			<key-property name="addressId"/>
-			<key-property name="type"/>
+			<key-property name="type" column="add_type"/>
 		</composite-id>
 		
 		<property name="street" not-null="true"/>
@@ -66,13 +66,13 @@
 	<class name="Address" 
 		table="Address"
 		entity-name="ShippingAddress"
-		where="type='SHIPPING'"
+		where="add_type='SHIPPING'"
 		select-before-update="true" 
 		dynamic-update="true">
 	
 		<composite-id name="addressId">
 			<key-property name="addressId"/>
-			<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