![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Hibernate
lovezhaohaimig
这个作者很懒,什么都没留下…
展开
-
hibernate传递参数时给问号赋值
1.创建一个类 List list = (List)this.getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException,原创 2016-10-23 10:30:19 · 4333 阅读 · 0 评论 -
测试Hibernate连接数据库是否成功
@Test public void testHibernatConfig(){ Configuration config = new Configuration(); config.configure("hibernate.cfg.xml"); SessionFactory sf = config.buildSessionFactor原创 2016-10-03 22:24:25 · 4074 阅读 · 0 评论