HHH-8275 union-subclass generates bad alter table for unique constraint

This commit is contained in:
Brett Meyer 2013-06-03 17:19:38 -04:00
parent adcd61f0e1
commit 04f3249a12
1 changed files with 6 additions and 8 deletions

View File

@ -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