读书人

hibernate 中获取 jdbc connection解决

发布时间: 2012-04-22 18:34:46 作者: rapoo

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

[解决办法]
你既然用的是getHibernateTemplate(),干嘛不用hibernate还用JDBC?

读书人网 >J2EE开发

热点推荐