doc's comment stuff

git-svn-id: https://svn.jboss.org/repos/hibernate/trunk/Hibernate3/doc@6873 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Gavin King 2005-05-23 03:46:29 +00:00
parent 63a407f3da
commit 11a548e1b3
1 changed files with 26 additions and 4 deletions

View File

@ -108,9 +108,9 @@
<programlisting><![CDATA[<property name="foo" type="string"> <programlisting><![CDATA[<property name="foo" type="string">
<column name="foo" length="64" not-null="true" sql-type="text"/> <column name="foo" length="64" not-null="true" sql-type="text"/>
</property> </property>]]></programlisting>
<property name="bar" type="my.customtypes.MultiColumnType"/> <programlisting><![CDATA[<property name="bar" type="my.customtypes.MultiColumnType"/>
<column name="fee" not-null="true" index="bar_idx"/> <column name="fee" not-null="true" index="bar_idx"/>
<column name="fi" not-null="true" index="bar_idx"/> <column name="fi" not-null="true" index="bar_idx"/>
<column name="fo" not-null="true" index="bar_idx"/> <column name="fo" not-null="true" index="bar_idx"/>
@ -127,9 +127,9 @@
<programlisting><![CDATA[<property name="foo" type="integer"> <programlisting><![CDATA[<property name="foo" type="integer">
<column name="foo" check="foo > 10"/> <column name="foo" check="foo > 10"/>
</property> </property>]]></programlisting>
<class name="Foo" table="foos" check="bar < 100.0"> <programlisting><![CDATA[<class name="Foo" table="foos" check="bar < 100.0">
... ...
<property name="bar" type="float"/> <property name="bar" type="float"/>
</class>]]></programlisting> </class>]]></programlisting>
@ -204,6 +204,28 @@
</tgroup> </tgroup>
</table> </table>
<para>
The <literal>&lt;comment&gt;</literal> element allows you to specify a comments
for the generated schema.
</para>
<programlisting><![CDATA[<class name="Customer" table="CurCust">
<comment>Current customers only</comment>
...
</class>]]></programlisting>
<programlisting><![CDATA[<property name="balance">
<column name="bal">
<comment>Balance in USD</comment>
</column>
</property>]]></programlisting>
<para>
This results in a <literal>comment on table</literal> or
<literal>comment on column</literal> statement in the generated
DDL (where supported).
</para>
</sect2> </sect2>
<sect2 id="toolsetguide-s1-3"> <sect2 id="toolsetguide-s1-3">