Comments (9)
这种东西通常不都是抽出来放在common模块里面吗,为什么要去生成。
from easycode.
因为生成后的文件,需要针对项目二次调整修改,就像我们生成 entity, service, dao。
代码生成器,本身就意味着存在代码存在【重复】,但之所以还需要用,其实就是在通用模块和个性化业务之间的一个平衡。
像前端开发用到的很多脚手架一样,不仅仅是生成项目配置和结构,还会生成一些预置的代码,这些代码是没必要放到框架里的,生成后还是需要修改。
from easycode.
这个也可以通过添加模板做到
from easycode.
但目前只有 database 上有菜单吧,这些只需要一次的预置模板,不太适合在那操作
from easycode.
不知道有没有选择已有的 entity 来生成代码的方式,有些是以数据库设计为主的,有些是以领域驱动模型设计为主的。
from easycode.
这个暂时没有
from easycode.
你可以根据你的想法进行改造,提个PR
from easycode.
目前插件是只提取 table 元数据信息作为模板参数么?
from easycode.
是的还有一些project参数以及module参数
from easycode.
Related Issues (20)
- 无法读取到全局变量
- 当数据库字段为驼峰式时,实体类字段会变为全小写生成
- postgres表注释获取不到 HOT 1
- 怎么拿到字段的约束条件,例如not null。 HOT 1
- 打开设置idea会报错
- Idea 2023.2.1生成的sql xml没有逗号 HOT 4
- 希望可以获取到更详细sql字段的信息 HOT 3
- idea2023.3生成的xml没有逗号 HOT 11
- 如何在自定义的模板里面获取 schema 名称 HOT 1
- 请问下如何获取foreign 。获取表的外键相关信息
- idea 2023.3.2 easycode 1.2.8-RELEASE java.lang.AssertionError 如何解决? HOT 2
- 是否可以增加扩展点,增加一个允许自定义生成代码的接口
- $author配置 HOT 4
- 能否支持一下社区版的Database Navigator插件?
- [BUG]多表生成代码时更换Module和Package时,只有一个表生效。其余仍沿用旧的。需要挨个单独选表修改才行
- 建议支持不同层生成至不同module
- Oracle 生成的Entity中column.comment为null HOT 1
- 定义的 allSqlColumn
- opengauss cannot be used normally
- Global Config中的init.vm文件代码内容有误
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easycode.