HHH-4732 quote column name as it is a keyword on teradata
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19077 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
6094bd00c4
commit
ae5bec1a28
|
@ -46,14 +46,14 @@
|
||||||
<class name="Address"
|
<class name="Address"
|
||||||
table="Address"
|
table="Address"
|
||||||
entity-name="BillingAddress"
|
entity-name="BillingAddress"
|
||||||
where="type='BILLING'"
|
where="add_type='BILLING'"
|
||||||
check="type in ('BILLING', 'SHIPPING')"
|
check="add_type in ('BILLING', 'SHIPPING')"
|
||||||
select-before-update="true"
|
select-before-update="true"
|
||||||
dynamic-update="true">
|
dynamic-update="true">
|
||||||
|
|
||||||
<composite-id name="addressId">
|
<composite-id name="addressId">
|
||||||
<key-property name="addressId"/>
|
<key-property name="addressId"/>
|
||||||
<key-property name="type"/>
|
<key-property name="type" column="add_type"/>
|
||||||
</composite-id>
|
</composite-id>
|
||||||
|
|
||||||
<property name="street" not-null="true"/>
|
<property name="street" not-null="true"/>
|
||||||
|
@ -66,13 +66,13 @@
|
||||||
<class name="Address"
|
<class name="Address"
|
||||||
table="Address"
|
table="Address"
|
||||||
entity-name="ShippingAddress"
|
entity-name="ShippingAddress"
|
||||||
where="type='SHIPPING'"
|
where="add_type='SHIPPING'"
|
||||||
select-before-update="true"
|
select-before-update="true"
|
||||||
dynamic-update="true">
|
dynamic-update="true">
|
||||||
|
|
||||||
<composite-id name="addressId">
|
<composite-id name="addressId">
|
||||||
<key-property name="addressId"/>
|
<key-property name="addressId"/>
|
||||||
<key-property name="type"/>
|
<key-property name="type" column="add_type"/>
|
||||||
</composite-id>
|
</composite-id>
|
||||||
|
|
||||||
<property name="street" not-null="true"/>
|
<property name="street" not-null="true"/>
|
||||||
|
|
Loading…
Reference in New Issue