HHH-4732 quote column name as it is a keyword on teradata

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19078 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Strong Liu 2010-03-22 18:10:13 +00:00
parent ae5bec1a28
commit cee8ef74cf
1 changed files with 5 additions and 5 deletions

View File

@ -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"/>