Skip to content

Commit 804418b

Browse files
committed
HHH-8273 Incorrect "unique-key" naming comment in docs
1 parent 55c7871 commit 804418b

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

documentation/src/main/docbook/devguide/en-US/Database_Access.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -522,9 +522,8 @@
522522
The <option>not-null</option> and <option>UNIQUE</option> attributes generate constraints on table columns.
523523
</para>
524524
<para>
525-
The unique-key attribute groups columns in a single, unique key constraint. Currently, the specified value
526-
of the unique-key attribute does not name the constraint in the generated DDL. It only groups the columns in
527-
the mapping file.
525+
The unique-key attribute groups columns in a single, unique key constraint. The attribute overrides
526+
the name of any generated unique key constraint.
528527
</para>
529528
<programlisting language="XML" role="XML"><xi:include href="extras/notnull-unique.xml" xmlns:xi="http://www.w3.org/2001/XInclude" parse="text" /></programlisting>
530529
</step>

documentation/src/main/docbook/manual/en-US/content/toolset_guide.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,8 @@
9595

9696
<para>
9797
A <literal>unique-key</literal> attribute can be used to group columns in
98-
a single, unique key constraint. Currently, the specified value of the
99-
<literal>unique-key</literal> attribute is <emphasis>not</emphasis> used
100-
to name the constraint in the generated DDL. It is only used to group the columns in
101-
the mapping file.
98+
a single, unique key constraint. The attribute overrides
99+
the name of any generated unique key constraint.
102100
</para>
103101

104102
<programlisting role="XML"><![CDATA[<many-to-one name="org" column="orgId" unique-key="OrgEmployeeId"/>

0 commit comments

Comments
 (0)