异常:the type net.sf.hibernate.lockmode cannot be resolved, it is indirectly referenced from required .class files

类继承了 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的

原文地址:https://www.cnblogs.com/sfeng1825/p/2755321.html