Author: epbernard
Date: 2010-05-26 12:21:56 -0400 (Wed, 26 May 2010)
New Revision: 19621
Modified:
core/trunk/documentation/manual/src/main/docbook/en-US/content/basic_mapping.xml
Log:
HHH-5149 Merge doc for generated properties and quoted elements
Modified:
core/trunk/documentation/manual/src/main/docbook/en-US/content/basic_mapping.xml
===================================================================
---
core/trunk/documentation/manual/src/main/docbook/en-US/content/basic_mapping.xml 2010-05-26
16:21:22 UTC (rev 19620)
+++
core/trunk/documentation/manual/src/main/docbook/en-US/content/basic_mapping.xml 2010-05-26
16:21:56 UTC (rev 19621)
@@ -5389,7 +5389,13 @@
<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 @@
<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>(a)Generated</classname>.</para>
</section>
<section id="mapping-column-read-and-write" revision="1">
@@ -5460,6 +5469,10 @@
<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 @@
<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>
Show replies by date