ssh做的,部分代码:public void Modify(int modify_id) { //先加载特定实例 Object p = getHibernateTemplate().get(LibraryReaderType.class,modify_id); //删除特定实例
getHibernateTemplate().update(p);
}
public String modify(){
LibraryReaderTypeBll.Modify(this.readertype.getModify_id());
return "success";
}提示错误:Provided id of the wrong type for class Model.LibraryReaderType. Expected: class java.lang.String, got class java.lang.Integer类型出错,但是我的数据库和model中modify_id都设置的是int型
还是dao中的代码有问题?帮忙看下把
getHibernateTemplate().update(p);
}
public String modify(){
LibraryReaderTypeBll.Modify(this.readertype.getModify_id());
return "success";
}提示错误:Provided id of the wrong type for class Model.LibraryReaderType. Expected: class java.lang.String, got class java.lang.Integer类型出错,但是我的数据库和model中modify_id都设置的是int型
还是dao中的代码有问题?帮忙看下把
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货