boolean saveOrUpdate(T entity);
报错如下:
com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: error: can not execute. because can not find column for id from entity!
实体类加注解:
@TableId private String objId;
在执行booleansaveOrUpdate方法时遇到了MybatisPlus异常,错误信息指出无法从实体类中找到用于ID的列。实体类中使用@TableId注解定义的属性是objId,这是一个字符串类型。
boolean saveOrUpdate(T entity);
报错如下:
com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: error: can not execute. because can not find column for id from entity!
实体类加注解:
@TableId private String objId;