mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
style: 代码格式更新。
This commit is contained in:
parent
51acb6df3f
commit
6729860e03
@ -234,7 +234,14 @@ public class GlobalConfig {
|
|||||||
return packageInfoGenerateEnable;
|
return packageInfoGenerateEnable;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addCustomConfig(String key, Object value) {
|
public Object getCustomConfig(String key) {
|
||||||
|
if (customConfig != null) {
|
||||||
|
return customConfig.get(key);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCustomConfig(String key, Object value) {
|
||||||
if (customConfig == null) {
|
if (customConfig == null) {
|
||||||
customConfig = new HashMap<>();
|
customConfig = new HashMap<>();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -70,7 +70,7 @@ public class StrategyConfig {
|
|||||||
*/
|
*/
|
||||||
private Set<String> unGenerateTables;
|
private Set<String> unGenerateTables;
|
||||||
|
|
||||||
public void addTableConfig(TableConfig tableConfig) {
|
public void setTableConfig(TableConfig tableConfig) {
|
||||||
if (tableConfigMap == null) {
|
if (tableConfigMap == null) {
|
||||||
tableConfigMap = new HashMap<>();
|
tableConfigMap = new HashMap<>();
|
||||||
}
|
}
|
||||||
@ -81,19 +81,19 @@ public class StrategyConfig {
|
|||||||
return tableConfigMap == null ? null : tableConfigMap.get(tableName);
|
return tableConfigMap == null ? null : tableConfigMap.get(tableName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addColumnConfig(ColumnConfig columnConfig) {
|
public void setColumnConfig(ColumnConfig columnConfig) {
|
||||||
if (columnConfigMap == null) {
|
if (columnConfigMap == null) {
|
||||||
columnConfigMap = new HashMap<>();
|
columnConfigMap = new HashMap<>();
|
||||||
}
|
}
|
||||||
columnConfigMap.put(columnConfig.getColumnName(), columnConfig);
|
columnConfigMap.put(columnConfig.getColumnName(), columnConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addColumnConfig(String tableName, ColumnConfig columnConfig) {
|
public void setColumnConfig(String tableName, ColumnConfig columnConfig) {
|
||||||
TableConfig tableConfig = getTableConfig(tableName);
|
TableConfig tableConfig = getTableConfig(tableName);
|
||||||
if (tableConfig == null) {
|
if (tableConfig == null) {
|
||||||
tableConfig = new TableConfig();
|
tableConfig = new TableConfig();
|
||||||
tableConfig.setTableName(tableName);
|
tableConfig.setTableName(tableName);
|
||||||
addTableConfig(tableConfig);
|
setTableConfig(tableConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
tableConfig.addColumnConfig(columnConfig);
|
tableConfig.addColumnConfig(columnConfig);
|
||||||
@ -129,7 +129,7 @@ public class StrategyConfig {
|
|||||||
return columnConfig;
|
return columnConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addGenerateTable(String... tables) {
|
public void setGenerateTable(String... tables) {
|
||||||
if (generateTables == null) {
|
if (generateTables == null) {
|
||||||
generateTables = new HashSet<>();
|
generateTables = new HashSet<>();
|
||||||
}
|
}
|
||||||
@ -141,7 +141,7 @@ public class StrategyConfig {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addUnGenerateTable(String... tables) {
|
public void setUnGenerateTable(String... tables) {
|
||||||
if (unGenerateTables == null) {
|
if (unGenerateTables == null) {
|
||||||
unGenerateTables = new HashSet<>();
|
unGenerateTables = new HashSet<>();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
/**
|
/*
|
||||||
* Copyright (c) 2022-2023, Mybatis-Flex (fuhai999@gmail.com).
|
* Copyright (c) 2022-2023, Mybatis-Flex (fuhai999@gmail.com).
|
||||||
* <p>
|
* <p>
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user