|
|
|
@ -36,7 +36,8 @@ public class TableInfoFactory {
|
|
|
|
|
private TableInfo getTable(String tableName, DatabaseMetaData metadata) throws Exception {
|
|
|
|
|
try (ResultSet resultSet = metadata.getTables(null, null, tableName, null);) {
|
|
|
|
|
while (resultSet.next()) {
|
|
|
|
|
TableInfo table = new TableInfo().setName(tableName);
|
|
|
|
|
TableInfo table = new TableInfo()
|
|
|
|
|
.setName(tableName);
|
|
|
|
|
table.setComment(resultSet.getString("REMARKS"));
|
|
|
|
|
return table;
|
|
|
|
|
}
|
|
|
|
@ -94,7 +95,7 @@ public class TableInfoFactory {
|
|
|
|
|
String className = metadata.getColumnClassName(i);
|
|
|
|
|
table.getColumns().get(columnName).setClassName(className);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
table.removeClassNotFound();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|