Annotation Interface EnableAutoGenerate
@Target(TYPE)
@Retention(RUNTIME)
@Documented
@Import(CdkjCoreConfigRegistrar.class)
public @interface EnableAutoGenerate
自动生成工具
-
可选元素概要
可选元素修饰符和类型可选元素说明目录结构根目录boolean
是否生成JAP模板boolean
是否生成 myBatis 模板String[]
对接查询那些表String[]
路径 (jpa 为:1、2、3、4、5、8,myBatis 为:1、2、3、4、5、6、7) 当 jpa myBatis 都为 true 是则全部为必填写 当 jpa 为 true 长度为 6,vo、dto、entity、controller、service、repository 当 myBatis 为 true 长度为 7,vo、dto、entity、controller、service、mapper、mapperXml (1) vo (2) dto (3) entity (4) controller (5) service (6) mapper (7) mapperXml (8) repository项目名称boolean
是否自动根据实体修改数据
-
元素详细资料
-
update
boolean update是否自动根据实体修改数据- 返回:
- 返回布尔值
- 默认值:
- false
-
jpa
boolean jpa是否生成JAP模板- 返回:
- 返回结果
- 默认值:
- false
-
myBatis
boolean myBatis是否生成 myBatis 模板- 返回:
- 返回结果
- 默认值:
- true
-
notTables
String[] notTables对接查询那些表- 返回:
- 返回结果
- 默认值:
- {}
-
basePath
String basePath根目录- 返回:
- 返回结果
- 默认值:
- ""
-
path
String[] path路径 (jpa 为:1、2、3、4、5、8,myBatis 为:1、2、3、4、5、6、7) 当 jpa myBatis 都为 true 是则全部为必填写 当 jpa 为 true 长度为 6,vo、dto、entity、controller、service、repository 当 myBatis 为 true 长度为 7,vo、dto、entity、controller、service、mapper、mapperXml (1) vo (2) dto (3) entity (4) controller (5) service (6) mapper (7) mapperXml (8) repository- 返回:
- 返回路径
- 默认值:
- {""}
-
basePackage
String basePackage目录结构- 返回:
- 返回结果集
- 默认值:
- "com.cdkjframework"
-
projectName
String projectName项目名称- 返回:
- 返回结果
- 默认值:
- "com.cdkjframework"
-