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