用了:
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
但没有把 hibernate 包加到项目中;
而在用
this.getHibernateTemplate().delete(books);时,内部会用到事务,从而用到
org.hibernate.lockmode这个类。而这个类就放在hibernate jar包中;
所以就出现了上面的错误;
用了:
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
但没有把 hibernate 包加到项目中;
而在用
this.getHibernateTemplate().delete(books);时,内部会用到事务,从而用到
org.hibernate.lockmode这个类。而这个类就放在hibernate jar包中;
所以就出现了上面的错误;