首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

hibernate 中获取 jdbc connection解决方法

2012-04-22 
hibernate 中获取 jdbc connectionSession session this.getHibernateTemplate().getSessionFactory().o

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

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

热点排行