![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ssh
星星源之心
从事软件开发,金融项目开发
展开
-
hibernate的gethibernatetemplate find条件查询方法
Spring中常用的hql查询方法 --------------------------------- 一、find(String queryString); 示例:this.getHibernateTemplate().find("from bean.User"); 返回所有User对象 二、find(String queryString ,转载 2017-07-13 17:45:34 · 1322 阅读 · 0 评论 -
纯java项目使用hibernateSessionFactory访问数据库
package com.zz.util; import org.hibernate.HibernateException; import org.hibernate.Session; import org.hibernate.cfg.Configuration; /** * Configures and provides access to Hibernate sessions转载 2017-07-21 17:12:38 · 2278 阅读 · 0 评论