表中没有主键,obj中没有@Id和@Name
Cnd cnd = Cnd.where("taskId", "=", task.getId()).and("accountId", "=", account.getId());
dao.update(obj, cnd);
报错:Don't know how to make fetch key这个怎么破?
2 回复
添加回复
请先登陆
表中没有主键,obj中没有@Id和@Name
Cnd cnd = Cnd.where("taskId", "=", task.getId()).and("accountId", "=", account.getId());
dao.update(obj, cnd);
报错:Don't know how to make fetch key这个怎么破?