摘要: 方式一:直接使用HibernateTemplate的find()方法,find方法支持执行hql语句 方式二:获取SessionFactory,再获取Session 方式三:使用hibernateTemplate调用回调函数 阅读全文