2019年4月3日
摘要: package com.test; import com.domain.Customer; import com.utils.HibernateUtils; import org.hibernate.SQLQuery; import org.hibernate.Session; import org.hibernate.Transaction; import org.hibernate.que... 阅读全文
posted @ 2019-04-03 16:35 kongieg 阅读(2339) 评论(0) 推荐(0) 编辑
摘要: 基本查询 条件查询 分页查询 使用聚合函数: 阅读全文
posted @ 2019-04-03 16:07 kongieg 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 创建HibernateUtils类,便于直接获取session 基本查询 条件查询之使用'?'占位符 条件查询之使用':name'占位符 分页查询: 阅读全文
posted @ 2019-04-03 14:43 kongieg 阅读(205) 评论(0) 推荐(0) 编辑