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作为主键策略 #1033

Closed
hachikozjq opened this issue Mar 26, 2020 · 4 comments
Closed

代码生成器无法用自定id作为主键策略 #1033

hachikozjq opened this issue Mar 26, 2020 · 4 comments

Comments

@hachikozjq
Copy link

版本号:

2.1

问题描述:

数据库主键是用自增id,但是代码生成器生成的entity主键注解为@TableId(type = IdType.UUID),导致insert的时候报id无法设置成uuid,后来手动修改IdType为AUTO就没问题了,一般表结构主键都习惯用语自增id,而且性能远远高于uuid。

截图&代码:

[图片]

友情提示: 未按格式要求发帖,会直接删掉。

@zhangdaiscott
Copy link
Member

已经规划,后面会实现

@qq471754603
Copy link

这个问题很实际

@yejianmail
Copy link

希望能支持主键类型选择

@zhangdaiscott
Copy link
Member

归集到问题
#1312

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

No branches or pull requests

4 participants