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

@TableId和@TableField不能组合使用 #66

Closed
yangpengfei369 opened this issue Jun 7, 2017 · 1 comment
Closed

@TableId和@TableField不能组合使用 #66

yangpengfei369 opened this issue Jun 7, 2017 · 1 comment

Comments

@yangpengfei369
Copy link

yangpengfei369 commented Jun 7, 2017

使用版本号为1.0mybatisplus-maven-plugin生成代码,vo类中的主键属性字段上有两条注解@TableId(type = IdType.UUID)@TableField(value="B_ID")private String bId;实际使用时并没有将SQL中的bId映射成B_ID,需要手动修改为'@TableId(value="B_ID", type = IdType.UUID)'.
不知道是不是偶发,请知悉

@qmdx
Copy link
Member

qmdx commented Jun 7, 2017

1.0 已经不维护了,你可以尝试自己修改下生成器。或者升级为 2.x 最新版

@qmdx qmdx closed this as completed Jun 7, 2017
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

2 participants