Hibernate Developer’s Guide Version 1.0
September 2, 2004 So many open source projects. Why not Open your Documents?
Hibernate 开发指南 .......................................................................................................3
准备工作 ..........................................................................................................5
构建 Hibernate 基础代码 ...............................................................................5
由数据库产生基础代码...........................................................................6
Hibernate 配置 ..............................................................................................17
第一段代码 ....................................................................................................19
Hibernate 基础语义 ......................................................................................21
Configuration ........................................................................................21
SessionFactory.......................................................................................22
Session....................................................................................................22
Hibernate 高级特性 ......................................................................................................24
XDoclet 与 Hibernate 映射...........................................................................24
数据检索 ........................................................................................................33
Criteria Query...............................................................................33
Criteria 查询表达式 ................................................................33
Criteria 高级特性 ....................................................................35
限定返回的记录范围.............................................................35
对查询结果进行排序.............................................................35
Hibernate Query Language (HQL).........................................36
数据关联 ........................................................................................................37
一对一关联.............................................................................37
一对多关联.............................................................................39
Ø 单向一对多关系......................................................39
Ø 双向一对多关系......................................................44
多对多关联.............................................................................49
数据访问 ........................................................................................................56
PO 和 VO ...............................................................................................56
关于 unsaved-value ...............................................................................59
Inverse 和 Cascade .........................................................................61
延迟加载(Lazy Loading)............................................................61
事务管理 ........................................................................................................65
基于 JDBC 的事务管理.........................................................................66
基于 JTA 的事务管理 ...........................................................................67
锁(locking).........................................................................................70
悲观锁(Pessimistic Locking) .......................................70
乐观锁(Optimistic Locking)..........................................71
Hibernate 分页..........................................................................................75
Cache 管理....................................................................................................77
Session 管理...............................................................................................81
Hibernate in Spring...........................................................................................86
编后赘言 ........................................................................................................................92
评论0
最新资源