EasyCode
EasyCode copied to clipboard
基于IntelliJ IDEA开发的代码生成插件,支持自定义任意模板(Java,html,js,xml)。只要是与数据库相关的代码都可以通过自定义模板来生成。支持数据库类型与java类型映射关系配置。支持同时生成生成多张表的代码。...
IDEA社区版里有个 Database Navigator 插件,跟专业版的Database很像,不知作者能否将EasyCode出一个IDEA社区版的并兼容Database Navigator插件,实现与专业版上EasyCode一样功能的插件,谢谢!
在模板中使用 $author 得到的是 “makejava”,能否设置成IDEA当前用户名
 版本:IntelliJ IDEA 2024.2.0.1 (Ultimate Edition)
选择子模块无法识别,选择Package的按钮被禁用。 
https://github.com/makejavas/EasyCode/blob/21b8aee3598d3beca8faf7ed95f2cb2b8f5cbd38/src/main/resources/globalConfig/Default/init.vm#L3C1-L4C86 这里的注释与代码似乎有些不一致 >##去掉表的t_前缀 >$!tableInfo.setName($tool.getClassName($tableInfo.obj.name.replaceFirst("book_",""))) 代码应改为 >$!tableInfo.setName($tool.getClassName($tableInfo.obj.name.replaceFirst("t_","")))
功能菜单不可用 
在database里面点击generate code时,会有扩展属性读不到的问题: 但是在template里面执行时,扩展属性是能读取到的:
It cannot be used in WebStorm 2025.1.1 version and prompts the error "Plugin 'EasyCode' requires plugin 'com.intellij.modules.java' to be installed".
It cannot be used in WebStorm 2025.1.1 version and prompts the error "Plugin 'EasyCode' requires plugin 'com.intellij.modules.java' to be installed".
com.intellij.diagnostic.PluginException: `ActionUpdateThread.OLD_EDT` is deprecated and going to be removed soon. 'com.sjhy.plugin.actions.EasyCodeEntityAction' must override `getActionUpdateThread()` and chose EDT or BGT. See ActionUpdateThread javadoc. [Plugin: com.sjhy.plugin.easycode] at com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:23) at com.intellij.diagnostic.PluginException.createByClass(PluginException.java:90) at com.intellij.diagnostic.PluginException.reportDeprecatedUsage(PluginException.java:125)...