Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-591
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-591
Summary: Extra documentation to indicate multi-column indexes are possible
Type: Patch
Status: Unassigned
Priority: Minor
Project: Hibernate2
Assignee:
Reporter: Francois Beausoleil
Created: Wed, 31 Dec 2003 7:53 AM
Updated: Wed, 31 Dec 2003 7:53 AM
Environment: Tested on Hibernate 2.0.2
Description:
The following patch adds documentation explaining to the user that it is possible to have the SchemaExport tool automatically create indexes.
This patch is a followup to the following thread:
http://forum.hibernate.org/viewtopic.php?t=926694
Index: doc/reference/src/basic_or_mapping.xml
===================================================================
RCS file: /cvsroot/hibernate/Hibernate2/doc/reference/src/basic_or_mapping.xml,v
retrieving revision 1.30
diff -u -r1.30 basic_or_mapping.xml
--- doc/reference/src/basic_or_mapping.xml 1 Aug 2003 16:33:06 -0000 1.30
+++ doc/reference/src/basic_or_mapping.xml 31 Dec 2003 13:50:09 -0000
@@ -1718,6 +1718,27 @@
unique="true"/>
</property>]]></programlisting>
+
+ <para>
+ Finally, it is also possible to have the <literal>SchemaExport</literal> commandline tool generated
+ required indexes automatically. For this, use the <literal>index</literal> attribute on
+ <literal><column></literal> elements.
+ </para>
+
+ <programlisting><![CDATA[<property
+ name="lastname">
+ <column
+ name="LASTNAME"
+ index="by_last_first"/>
+</property>
+
+<property
+ name="firstname">
+ <column
+ name="FIRSTNAME"
+ index="by_last_first"/>
+</property>]]></programlisting>
+
</sect1>
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|