public class MobiOracle10gDialect extends Oracle10gDialect {
@Override
public boolean supportsUniqueConstraintInCreateAlterTable() {
return false;
}
@Override
public Exporter<Table> getTableExporter() {
return new StandardTableExporter(this){
protected void applyComments(Table table, QualifiedName tableName, List<String> sqlStrings) {
if ( dialect.supportsCommentOn() ) {
if ( table.getComment() != null ) {
sqlStrings.add( "comment on table " + tableName + " is '" + table.getComment() + "'" );
}
final Iterator iter = table.getColumnIterator();
while ( iter.hasNext() ) {
Column column = (Column) iter.next();
String columnComment = column.getComment();
if ( columnComment != null ) {
sqlStrings.add( "comment on column " + tableName + "." + column.getQuotedName( dialect ) + " is '" + columnComment + "'" );
}
}
}
}
};
}
}