HHH-8275 union-subclass generates bad alter table for unique constraint
This commit is contained in:
parent
adcd61f0e1
commit
04f3249a12
|
@ -87,14 +87,12 @@ public class DenormalizedTable extends Table {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Iterator getUniqueKeyIterator() {
|
public Iterator getUniqueKeyIterator() {
|
||||||
//wierd implementation because of hacky behavior
|
Iterator iter = includedTable.getUniqueKeyIterator();
|
||||||
//of Table.sqlCreateString() which modifies the
|
while ( iter.hasNext() ) {
|
||||||
//list of unique keys by side-effect on some
|
UniqueKey uk = (UniqueKey) iter.next();
|
||||||
//dialects
|
createUniqueKey( uk.getColumns() );
|
||||||
Map uks = new HashMap();
|
}
|
||||||
uks.putAll( getUniqueKeys() );
|
return getUniqueKeys().values().iterator();
|
||||||
uks.putAll( includedTable.getUniqueKeys() );
|
|
||||||
return uks.values().iterator();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue