HHH-5149 Merge doc for generated properties and quoted elements
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19621 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
c906bc9780
commit
3c9c1c598f
|
@ -5389,7 +5389,13 @@ package org.hibernate.test.annotations.any;
|
|||
<literal>Dialect</literal>. This is usually double quotes, but the SQL
|
||||
Server uses brackets and MySQL uses backticks.</para>
|
||||
|
||||
<programlisting role="XML"><class name="LineItem" table="`Line Item`">
|
||||
<programlisting role="XML">@Entity @Table(name="`Line Item`")
|
||||
class LineItem {
|
||||
@id @Column(name="`Item Id`") Integer id;
|
||||
@Column(name="`Item #`") int itemNumber
|
||||
}
|
||||
|
||||
<class name="LineItem" table="`Line Item`">
|
||||
<id name="id" column="`Item Id`"/><generator class="assigned"/></id>
|
||||
<property name="itemNumber" column="`Item #`"/>
|
||||
...
|
||||
|
@ -5427,6 +5433,9 @@ package org.hibernate.test.annotations.any;
|
|||
|
||||
<para><literal>always</literal>: the property value is generated both on
|
||||
insert and on update.</para>
|
||||
|
||||
<para>To mark a property as generated, use
|
||||
<classname>@Generated</classname>.</para>
|
||||
</section>
|
||||
|
||||
<section id="mapping-column-read-and-write" revision="1">
|
||||
|
@ -5460,6 +5469,10 @@ package org.hibernate.test.annotations.any;
|
|||
|
||||
<para>The <literal>write</literal> expression, if specified, must contain
|
||||
exactly one '?' placeholder for the value.</para>
|
||||
|
||||
<note>
|
||||
<para>This feature is not supported in Annotations</para>
|
||||
</note>
|
||||
</section>
|
||||
|
||||
<section id="mapping-database-object">
|
||||
|
@ -5509,5 +5522,9 @@ package org.hibernate.test.annotations.any;
|
|||
<dialect-scope name="org.hibernate.dialect.Oracle10gDialect"/>
|
||||
</database-object>
|
||||
</hibernate-mapping></programlisting>
|
||||
|
||||
<note>
|
||||
<para>This feature is not supported in Annotations</para>
|
||||
</note>
|
||||
</section>
|
||||
</chapter>
|
||||
|
|
Loading…
Reference in New Issue