HHH-4732 quote column name as it is a keyword on teradata
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19056 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
e7ee04d13b
commit
7ed0be30c6
|
@ -8,7 +8,7 @@
|
||||||
<class entity-name="Customer" node="customer">
|
<class entity-name="Customer" node="customer">
|
||||||
<id name="customerId" type="string" node="@id"/>
|
<id name="customerId" type="string" node="@id"/>
|
||||||
<component name="name">
|
<component name="name">
|
||||||
<property name="first" type="string"/>
|
<property name="first" column="`first`" type="string"/>
|
||||||
<property name="last" type="string"/>
|
<property name="last" type="string"/>
|
||||||
</component>
|
</component>
|
||||||
<property name="address" type="string" node="address"/>
|
<property name="address" type="string" node="address"/>
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
</set>
|
</set>
|
||||||
</class>
|
</class>
|
||||||
|
|
||||||
<class entity-name="Account" node="account">
|
<class entity-name="Account" table="`Account`" node="account">
|
||||||
<id name="accountId" type="string" node="@id"/>
|
<id name="accountId" type="string" node="@id"/>
|
||||||
<many-to-one name="customer" column="customerId" entity-name="Customer" cascade="all" embed-xml="true" />
|
<many-to-one name="customer" column="customerId" entity-name="Customer" cascade="all" embed-xml="true" />
|
||||||
<!--not-null="true"-->
|
<!--not-null="true"-->
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<id name="id" node="@id" type="long">
|
<id name="id" node="@id" type="long">
|
||||||
<generator class="increment"/>
|
<generator class="increment"/>
|
||||||
</id>
|
</id>
|
||||||
<discriminator column="role" type="string" length="10"/>
|
<discriminator column="`role`" type="string" length="10"/>
|
||||||
<property name="name" node="@name" type="string"/>
|
<property name="name" node="@name" type="string"/>
|
||||||
<subclass entity-name="Techie" node="techie" />
|
<subclass entity-name="Techie" node="techie" />
|
||||||
<subclass entity-name="Salesdude" node="sales-dude"/>
|
<subclass entity-name="Salesdude" node="sales-dude"/>
|
||||||
|
|
Loading…
Reference in New Issue