mybatisplus-plus| error: can not execute. because can not find column for id from entity
mybatisplus-plus| error: can not execute. because can not find column for id from entity
·
根据以下博客学习使用 mybatisplus-plus 实现复合主键的应用:
mybatis-plus 复合主键的应用(多主键操作)_mybatisplus复合主键怎么处理_墨鱼梭梭树的博客-CSDN博客
按照相同步骤设置并运行,进行数据更新却出现如下报错:
error: can not execute. because can not find column for id from entity
我实在不理解为什么我设置的一模一样却会出现报错,结果发现是我的方法还没有改:
public boolean saveGrade(Grade grade) {
return saveOrUpdateByMultiId(grade);
}
以前用的是 saveOrUpdate,现在要用 saveOrUpdateByMultiId!
感谢这篇博客里写了要改方法:
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)