|
|
@@ -27,11 +27,11 @@ import java.util.List;
|
|
|
/**
|
|
|
* TableBuilder build the mapping of model between class and table.
|
|
|
*/
|
|
|
-class TableBuilder {
|
|
|
+public class TableBuilder {
|
|
|
|
|
|
- private JavaType javaType = new JavaType();
|
|
|
+ protected JavaType javaType = new JavaType();
|
|
|
|
|
|
- void build(List<Table> tableList, Config config) {
|
|
|
+ public void build(List<Table> tableList, Config config) {
|
|
|
// 支持 useAsDataTransfer(...) 中的 arp.start() 正常运作
|
|
|
if (config.dataSource instanceof NullDataSource) {
|
|
|
return ;
|
|
|
@@ -60,7 +60,7 @@ class TableBuilder {
|
|
|
}
|
|
|
|
|
|
@SuppressWarnings("unchecked")
|
|
|
- private void doBuild(Table table, Connection conn, Config config) throws SQLException {
|
|
|
+ protected void doBuild(Table table, Connection conn, Config config) throws SQLException {
|
|
|
table.setColumnTypeMap(config.containerFactory.getAttrsMap());
|
|
|
if (table.getPrimaryKey() == null) {
|
|
|
table.setPrimaryKey(config.dialect.getDefaultPrimaryKey());
|