类 AutoGenerator
java.lang.Object
com.baomidou.mybatisplus.generator.AutoGenerator
生成文件
- 从以下版本开始:
- 2016-08-30
- 作者:
- YangHu, tangguo, hubin
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明config(@NotNull ConfigBuilder configBuilder) 设置配置汇总voidexecute()生成代码voidexecute(AbstractTemplateEngine templateEngine) 生成代码getAllTableInfoList(@NotNull ConfigBuilder config) 开放表信息、预留子类重写配置信息数据源配置全局 相关配置注入配置包 相关配置数据库表配置已过时。global(@NotNull GlobalConfig globalConfig) 指定全局配置injection(@NotNull InjectionConfig injectionConfig) 注入配置packageInfo(@NotNull PackageConfig packageConfig) 指定包配置信息strategy(@NotNull StrategyConfig strategyConfig) 生成策略template(@NotNull TemplateConfig templateConfig) 已过时。3.5.6strategy(StrategyConfig)
-
字段详细资料
-
config
配置信息 -
injection
注入配置
-
-
构造器详细资料
-
AutoGenerator
构造方法- 参数:
dataSourceConfig- 数据库配置- 从以下版本开始:
- 3.5.0
-
-
方法详细资料
-
injection
注入配置- 参数:
injectionConfig- 注入配置- 返回:
- this
- 从以下版本开始:
- 3.5.0
-
strategy
生成策略- 参数:
strategyConfig- 策略配置- 返回:
- this
- 从以下版本开始:
- 3.5.0
-
packageInfo
指定包配置信息- 参数:
packageConfig- 包配置- 返回:
- this
- 从以下版本开始:
- 3.5.0
-
template
已过时。3.5.6strategy(StrategyConfig)指定模板配置- 参数:
templateConfig- 模板配置- 返回:
- this
- 从以下版本开始:
- 3.5.0
-
global
指定全局配置- 参数:
globalConfig- 全局配置- 返回:
- this
- 从以下版本开始:
- 3.5.0
-
config
设置配置汇总- 参数:
configBuilder- 配置汇总- 返回:
- this
- 从以下版本开始:
- 3.5.0
-
execute
public void execute()生成代码 -
execute
生成代码- 参数:
templateEngine- 模板引擎
-
getAllTableInfoList
@NotNull protected @NotNull List<TableInfo> getAllTableInfoList(@NotNull @NotNull ConfigBuilder config) 开放表信息、预留子类重写- 参数:
config- 配置信息- 返回:
- ignore
-
getInjectionConfig
-
getConfig
配置信息 -
getInjection
注入配置 -
getDataSource
数据源配置 -
getStrategy
数据库表配置 -
getPackageInfo
包 相关配置 -
getTemplate
已过时。3.5.6strategy模板 相关配置 -
getGlobalConfig
全局 相关配置
-
strategy