File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
hibernate-core/src/main/java/org/hibernate/mapping Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -87,14 +87,12 @@ public PrimaryKey getPrimaryKey() {
87
87
88
88
@ Override
89
89
public Iterator getUniqueKeyIterator () {
90
- //wierd implementation because of hacky behavior
91
- //of Table.sqlCreateString() which modifies the
92
- //list of unique keys by side-effect on some
93
- //dialects
94
- Map uks = new HashMap ();
95
- uks .putAll ( getUniqueKeys () );
96
- uks .putAll ( includedTable .getUniqueKeys () );
97
- return uks .values ().iterator ();
90
+ Iterator iter = includedTable .getUniqueKeyIterator ();
91
+ while ( iter .hasNext () ) {
92
+ UniqueKey uk = (UniqueKey ) iter .next ();
93
+ createUniqueKey ( uk .getColumns () );
94
+ }
95
+ return getUniqueKeys ().values ().iterator ();
98
96
}
99
97
100
98
@ Override
You can’t perform that action at this time.
0 commit comments