随笔分类 -  Hibernate

Hibernate之SQL语言查询
摘要: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 阅读(2366) 评论(0) 推荐(0)
Hibernate之Criteria语言查询
摘要:基本查询 条件查询 分页查询 使用聚合函数: 阅读全文
posted @ 2019-04-03 16:07 kongieg 阅读(147) 评论(0) 推荐(0)
Hibernate之HQL语言查询
摘要:创建HibernateUtils类,便于直接获取session 基本查询 条件查询之使用'?'占位符 条件查询之使用':name'占位符 分页查询: 阅读全文
posted @ 2019-04-03 14:43 kongieg 阅读(219) 评论(0) 推荐(0)