hibernate 自动删除
- 作者: 神仙指
- 来源: 51数据库
- 2020-10-08
你先看一下,你这段代码执行的时候有没有什么异常,还有就是你可能没有commit。
public void delcoursebyid(long id) {
// todo auto-generated method stub
this.gethibernatetemplate().delete((course)this.gethibernatetemplate ().get(course.class, id));
}
public void delcoursebyid(long id) {
// todo auto-generated method stub
this.gethibernatetemplate().delete((course)this.gethibernatetemplate ().get(course.class, id));
}
推荐阅读
