Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望主项目新增时,可以支持采用数据库自增id,而不是业务代码生成 #120

Open
zhoulingfengofcd opened this issue Feb 26, 2020 · 3 comments
Assignees
Labels

Comments

@zhoulingfengofcd
Copy link
Contributor

@zhoulingfengofcd zhoulingfengofcd commented Feb 26, 2020

具体说下
现在APIJSON,默认会生成库表id,但是实际业务,代码生成总会有冲突的风险,而数据库自增则可避免。我采用的方式是在入库前删掉默认生成的id,让数据库自动生成id返回

为什么
有效避免id冲突风险

@TommyLemon
Copy link
Member

@TommyLemon TommyLemon commented Feb 26, 2020

感谢建议,这个需求大家反复提及,会优先实现(预计下个版本)

@TommyLemon TommyLemon self-assigned this Feb 26, 2020
@TommyLemon
Copy link
Member

@TommyLemon TommyLemon commented Mar 1, 2020

已支持
f87ebea

@xiaofeihe
Copy link

@xiaofeihe xiaofeihe commented Mar 3, 2020

支持了,太好了。这个很重要。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.