异常:the type net.sf.hibernate.lockmode cannot be resolved, it is indirectly referenced from required .class files
Posted on 2012-11-05 16:12 feng1825 阅读(511) 评论(0) 编辑 收藏 举报类继承了 HibernateDaoSupport
在方法中调用super.getHibernateTemplate().get(cl, id);
报的异常:the type net.sf.hibernate.lockmode cannot be resolved, it is indirectly referenced from required .class files
caused by :是由于导入的HibernateDaoSupport中jar的version有问题。
需要导入的是:org.springframework.orm.hibernate3.support.HibernateDaoSupport;即Hibernate 3.x 而不是Hibernate 2.x的