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:
parent
ae5bec1a28
commit
cee8ef74cf
|
@ -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"/>
|
||||
|
|
Loading…
Reference in New Issue