From: <one...@us...> - 2003-04-04 16:43:20
|
Update of /cvsroot/hibernate/Hibernate2/doc/reference/src In directory sc8-pr-cvs1:/tmp/cvs-serv19920/reference/src Modified Files: toolset_guide.xml Log Message: improved schema export doc Index: toolset_guide.xml =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/doc/reference/src/toolset_guide.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** toolset_guide.xml 3 Apr 2003 01:43:30 -0000 1.1 --- toolset_guide.xml 4 Apr 2003 16:43:16 -0000 1.2 *************** *** 5,9 **** Hibernate supports roundtrip engineering with a set of tools for DDL schema generation from a mapping file, mapping file generation ! from Java source code, Java class generation from a mapping file and a reverse engineering tool to generate Java classes and mapping files from an existing database schema. --- 5,9 ---- Hibernate supports roundtrip engineering with a set of tools for DDL schema generation from a mapping file, mapping file generation ! from Java classes, Java source generation from a mapping file and a reverse engineering tool to generate Java classes and mapping files from an existing database schema. *************** *** 19,23 **** <para> ! A schema can be generated from your mapping file/s through a command line utility: </para> --- 19,23 ---- <para> ! DDL can be generated from your mapping file/s by a command line utility: </para> *************** *** 126,132 **** <para> Some tags accept an <literal>index</literal> attribute for specifying the name of an index for that ! column. </para> ! <para> Examples: --- 126,133 ---- <para> Some tags accept an <literal>index</literal> attribute for specifying the name of an index for that ! column and a <literal>unique-key</literal> attribute for specifying the name of a multi-column unique ! key. </para> ! <para> Examples: *************** *** 163,166 **** --- 164,217 ---- </para> + <table frame="all"> + <title>Summary</title> + <tgroup cols="2"> + <colspec colwidth="1*"/> + <colspec colwidth="2.5*"/> + <thead> + <row> + <entry>Attribute</entry> + <entry>Values</entry> + <entry>Interpretation</entry> + </row> + </thead> + <tbody> + <row> + <entry><literal>length</literal></entry> + <entry><literal>true|false</literal></entry> + <entry>column length</entry> + </row> + <row> + <entry><literal>not-null</literal></entry> + <entry><literal>true|false</literal></entry> + <entry>specfies that the column should be non-nullable</entry> + </row> + <row> + <entry><literal>unique</literal></entry> + <entry><literal>true|false</literal></entry> + <entry>specifies that the column should have a unique constraint</entry> + </row> + <row> + <entry><literal>index</literal></entry> + <entry><literal>index_name</literal></entry> + <entry>specifies the name of a (multi-column) index</entry> + </row> + <row> + <entry><literal>unique-key</literal></entry> + <entry><literal>unique_key_name</literal></entry> + <entry>specifies the name of a multi-column unique constraint</entry> + </row> + <row> + <entry><literal>sql-type</literal></entry> + <entry><literal>column_type</literal></entry> + <entry> + overrides the default column type (attribute of + <literal><column></literal> element only) + </entry> + </row> + </tbody> + </tgroup> + </table> + </sect2> *************** *** 179,183 **** <table frame="all"> ! <title>SchemaExport Command Line Options</title> <tgroup cols="2"> <colspec colwidth="1.5*"/> --- 230,234 ---- <table frame="all"> ! <title><literal>SchemaExport</literal> Command Line Options</title> <tgroup cols="2"> <colspec colwidth="1.5*"/> *************** *** 223,231 **** <para> ! Optionally, you can control the <literal>SchemaExport</literal> tool in your application: </para> ! <programlisting><![CDATA[Datastore ds; ! new net.sf.hibernate.tool.hbm2ddl.SchemaExport(ds, properties).create(false, true);]]></programlisting> </sect2> --- 274,282 ---- <para> ! Optionally, you can embed <literal>SchemaExport</literal> in your actual application: </para> ! <programlisting><![CDATA[Datastore ds = ....; ! new SchemaExport(ds, properties).create(false, true);]]></programlisting> </sect2> *************** *** 240,244 **** <itemizedlist spacing="compact"> <listitem> ! <para>as system properties with -D<emphasis><property></emphasis></para> </listitem> <listitem> --- 291,295 ---- <itemizedlist spacing="compact"> <listitem> ! <para>as system properties with <literal>-D</literal><emphasis><property></emphasis></para> </listitem> <listitem> *************** *** 254,279 **** </para> ! <itemizedlist spacing="compact"> ! <listitem> ! <para><literal>hibernate.connection.driver = </literal> ! <emphasis>jdbc driver class</emphasis></para> ! </listitem> ! <listitem> ! <para><literal>hibernate.connection.url = </literal> ! <emphasis>jdbc url</emphasis></para> ! </listitem> ! <listitem> ! <para><literal>hibernate.connection.username = </literal> ! <emphasis>database user</emphasis></para> ! </listitem> ! <listitem> ! <para><literal>hibernate.connection.password = </literal> ! <emphasis>user password</emphasis></para> ! </listitem> ! <listitem> ! <para><literal>hibernate.dialect = </literal> ! <emphasis>dialect</emphasis></para> ! </listitem> ! </itemizedlist> </sect2> --- 305,343 ---- </para> ! <table frame="all"> ! <title>SchemaExport Connection Properties</title> ! <tgroup cols="2"> ! <colspec colwidth="1.5*"/> ! <colspec colwidth="2*"/> ! <thead> ! <row> ! <entry>Property Name</entry> ! <entry>Description</entry> ! </row> ! </thead> ! <tbody> ! <row> ! <entry><literal>hibernate.connection.driver</literal></entry> ! <entry>jdbc driver class</entry> ! </row> ! <row> ! <entry><literal>hibernate.connection.url</literal></entry> ! <entry>jdbc url</entry> ! </row> ! <row> ! <entry><literal>hibernate.connection.username</literal></entry> ! <entry>database user</entry> ! </row> ! <row> ! <entry><literal>hibernate.connection.password</literal></entry> ! <entry>user password</entry> ! </row> ! <row> ! <entry><literal>hibernate.dialect</literal></entry> ! <entry>dialect</entry> ! </row> ! </tbody> ! </tgroup> ! </table> </sect2> *************** *** 283,288 **** <para> ! You can call the <literal>SchemaExport</literal> tool from your Ant build ! script: </para> --- 347,351 ---- <para> ! You can call <literal>SchemaExport</literal> from your Ant build script: </para> |