Annotation Interface EnableAutoGenerate


@Target(TYPE) @Retention(RUNTIME) @Documented @Import(CdkjCoreConfigRegistrar.class) public @interface EnableAutoGenerate
自动生成工具
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    目录结构
    根目录
    boolean
    是否生成JAP模板
    boolean
    是否生成 myBatis 模板
    对接查询那些表
    路径 (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"