static class GeneratorProperties.StrategyConfig extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private boolean |
controllerMappingHyphenStyle
RequestMapping 使用连字符格式
|
private boolean |
entityBooleanColumnRemoveIsPrefix
Boolean类型字段是否移除is前缀
比如 : 数据库字段名称 : 'is_xxx',类型为 : tinyint. |
private boolean |
entityBuilderModel
实体类是否使用构建者模型
|
private boolean |
entityColumnConstant
实体类是否生成字段常量
|
private boolean |
entityLombokModel
实体类是否为lombok模型
|
private String |
logicDeleteFieldName
逻辑删除属性名称
|
private String |
naming
数据库表映射到实体的命名策略
|
private boolean |
restControllerStyle
生成 RestController 控制器
|
private String |
superControllerClass
自定义继承的Controller类全称,带包名
|
private String |
superEntityClass
自定义继承的Entity类全称,带包名
|
private String |
superEntityColumns
自定义基础的Entity类,公共字段
|
private String |
superMapperClass
自定义继承的Mapper类全称,带包名
|
private String |
superServiceClass
自定义继承的Service类全称,带包名
|
private String |
superServiceImplClass
自定义继承的ServiceImpl类全称,带包名
|
private String |
tablePrefix
表前缀,如:sys_
|
private String |
versionFieldName
乐观锁属性名称
|
| 构造器和说明 |
|---|
StrategyConfig() |
private String tablePrefix
private String naming
private String superEntityClass
private String superEntityColumns
private String superMapperClass
private String superServiceClass
private String superServiceImplClass
private String superControllerClass
private String versionFieldName
private String logicDeleteFieldName
private boolean restControllerStyle
private boolean controllerMappingHyphenStyle
private boolean entityBuilderModel
private boolean entityLombokModel
private boolean entityColumnConstant
private boolean entityBooleanColumnRemoveIsPrefix
Copyright © 2021. All rights reserved.