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:
Strong Liu 2010-03-22 13:56:03 +00:00
parent e7ee04d13b
commit 7ed0be30c6
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@
<class entity-name="Customer" node="customer">
<id name="customerId" type="string" node="@id"/>
<component name="name">
<property name="first" type="string"/>
<property name="first" column="`first`" type="string"/>
<property name="last" type="string"/>
</component>
<property name="address" type="string" node="address"/>
@ -34,7 +34,7 @@
</set>
</class>
<class entity-name="Account" node="account">
<class entity-name="Account" table="`Account`" node="account">
<id name="accountId" type="string" node="@id"/>
<many-to-one name="customer" column="customerId" entity-name="Customer" cascade="all" embed-xml="true" />
<!--not-null="true"-->

View File

@ -19,7 +19,7 @@
<id name="id" node="@id" type="long">
<generator class="increment"/>
</id>
<discriminator column="role" type="string" length="10"/>
<discriminator column="`role`" type="string" length="10"/>
<property name="name" node="@name" type="string"/>
<subclass entity-name="Techie" node="techie" />
<subclass entity-name="Salesdude" node="sales-dude"/>