-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
Comments
已经规划,后面会实现 |
这个问题很实际 |
希望能支持主键类型选择 |
Open
归集到问题 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
版本号:
2.1
问题描述:
数据库主键是用自增id,但是代码生成器生成的entity主键注解为@TableId(type = IdType.UUID),导致insert的时候报id无法设置成uuid,后来手动修改IdType为AUTO就没问题了,一般表结构主键都习惯用语自增id,而且性能远远高于uuid。
截图&代码:
[图片]
友情提示: 未按格式要求发帖,会直接删掉。
The text was updated successfully, but these errors were encountered: