return;
}
AnnotationInstance[] uniqueConstraints = value.asNestedArray();
for ( AnnotationInstance unique : uniqueConstraints ) {
String name = unique.value( "name" ).asString();
UniqueKey uniqueKey = table.getOrCreateUniqueKey( name );
String[] columnNames = unique.value( "columnNames" ).asStringArray();
if ( columnNames.length == 0 ) {
//todo throw exception?
}
for ( String columnName : columnNames ) {
uniqueKey.addColumn( table.getOrCreateColumn( columnName ) );
}
}
}