# plugin-entity-helper **Repository Path**: wangjinwen/plugin-entity-helper ## Basic Information - **Project Name**: plugin-entity-helper - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-19 - **Last Updated**: 2021-09-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 这个是一个 idea-plugin 的 gradle 项目 插件集成功能: this plugin features: 1.generate chain set method for entity class, method's name is withXXX(XXX is field name)[ASW style] generate chain set method for entity class, method's name is field name (just like lombok @Builder) 2.fast to set all fields's value for a new object declaration generate set method all at once for object declare generate set method all at once for object declare, set all filed with a random value, for fast builder a api parameter entity fast to instantiate a Class for test 3.auto insert gradle.build repository for ALIYUN repository proxy, for fast download jar dependencies for chinese developer 针对实体类,链式属性赋值方法 插件的使用 [参考 idea 的生成 setter,getter] Code -> Generate -> 选中 GenerateChainWithMethod |主要用于实体类, 自动生成链式 set 方法,使用 with 属性名作为方法名,AWS风格 选中 GenerateChainBuilderMethod |主要用于实体类, 自动生成链式 builder 方法, 使用属性名作为方法名 针对类的实例声明后,一次性生成所有属性的赋值语句,并给默认值,或不给值,或给随机值(用于测试) 插件的使用 [参考 idea 的生成 setter,getter] Code -> Generate -> 选中 GenerateAllWither |主要用于 new 实体类后, 快速生成 with(链式set) 赋值语句,并给随机值, 用于测试 选中 GenerateAllWitherWithDefaultValue |主要用于 new 实体类后, 快速生成 with(链式set) 赋值语句,并给随机值, 用于测试 选中 GenerateAllSetterWithRandomValue |主要用于 new 实体类后, 快速生成 with(链式set) 赋值语句,并给随机值, 并给所有属性随机值作为默认值, 用于测试 选中 GenerateAllSetter |主要用于 new 实体类后, 快速生成 set 赋值语句,并给默认值, 避免因 entity 属性很多,漏掉某些属性的赋值 选中 GenerateAllWithMethod |主要用于 new 实体类后, 快速生成 set 赋值语句,并给默认值 选中 GenerateAllWitherWithRandomValue |主要用于 new 实体类后, 快速生成 set 赋值语句,并给所有属性随机值作为默认值, 用于测试 选中 InsertGradleRepository4Ali |针对 build.gradle 文件,插入阿里云依赖代理仓库 [插件 SDK 的版本]|[用于测试的 idea 版本]|[测试的 JDK 版本] 在 build.gradle 中有说明 org.jetbrains.intellij 用于插件构建的 gradle 版本是 6.8 开发插件的的 idea 版本是 2021.1 生成插件 jar Gradle -> entity-helper -> Tasks -> intellij -> buildPlugin 调试 jar Gradle -> entity-helper -> Tasks -> intellij -> runIde 支持使用 JRebel ,勾选中 JRebel后,手动 ctrl + B 来热更新