日期:2014-05-19  浏览次数:20663 次

hibernate 中获取 jdbc connection
Session session = this.getHibernateTemplate().getSessionFactory().openSession();
Connection conn=session.connection();
这里 connection()为什么不能用,connection 被画了一条线,用的是myeclipse

------解决方案--------------------
你既然用的是getHibernateTemplate(),干嘛不用hibernate还用JDBC?