-
Notifications
You must be signed in to change notification settings - Fork 51
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
updateByPrimaryKeySelective 会更新主键,报错 #119
Comments
可以在这里断点看看返回更新行的时候是否把 dataId 过滤掉了。 |
|
使用 updateByExampleSetValues 这个方式可以,符合预期,先用这种了,不过还是希望能使用这个 :updateByPrimaryKeySelective , 这个写起来更省事 |
dataId 这个字段,是公共的,多级继承,这个影响么? |
继承不影响,可以贴个实体的结构(含继承),我复现试试。 |
实体继承如上,报错如上,调式信息如上! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
报错如下:
主键是这样配置的
应该如何配置调用 updateByPrimaryKeySelective 时把主键排除掉。
版本:
mybatisMapperVersion = "2.2.5"
mybatisSpringBootVersion = "3.0.4"
The text was updated successfully, but these errors were encountered: