File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
documentation/src/main/docbook Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 522
522
The <option >not-null</option > and <option >UNIQUE</option > attributes generate constraints on table columns.
523
523
</para >
524
524
<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.
528
527
</para >
529
528
<programlisting language =" XML" role =" XML" ><xi : include href =" extras/notnull-unique.xml" xmlns : xi =" http://www.w3.org/2001/XInclude" parse =" text" /></programlisting >
530
529
</step >
Original file line number Diff line number Diff line change 95
95
96
96
<para >
97
97
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.
102
100
</para >
103
101
104
102
<programlisting role =" XML" ><![CDATA[ <many-to-one name="org" column="orgId" unique-key="OrgEmployeeId"/>
You can’t perform that action at this time.
0 commit comments