• Hibernate 中文文档 3.2
  • 介紹
  • 1. 前言
    • 1.1. 1. 翻译说明
    • 1.2. 2. 版权声明
  • 2. 第 1 章 Hibernate入门
    • 2.1. 1.1. 前言
    • 2.2. 1.2. 第一部分 - 第一个Hibernate应用程序
      • 2.2.1. 1.2.1. 第一个class
      • 2.2.2. 1.2.2. 映射文件
      • 2.2.3. 1.2.3. Hibernate配置
      • 2.2.4. 1.2.4. 用Ant构建
      • 2.2.5. 1.2.5. 启动和辅助类
      • 2.2.6. 1.2.6. 加载并存储对象
    • 2.3. 1.3. 第二部分 - 关联映射
      • 2.3.1. 1.3.1. 映射Person类
      • 2.3.2. 1.3.2. 单向Set-based的关联
      • 2.3.3. 1.3.3. 使关联工作
      • 2.3.4. 1.3.4. 值类型的集合
      • 2.3.5. 1.3.5. 双向关联
      • 2.3.6. 1.3.6. 使双向连起来
    • 2.4. 1.4. 第三部分 - EventManager web应用程序
      • 2.4.1. 1.4.1. 编写基本的servlet
      • 2.4.2. 1.4.2. 处理与渲染
      • 2.4.3. 1.4.3. 部署与测试
    • 2.5. 1.5. 总结
  • 3. 第 2 章 体系结构(Architecture)
    • 3.1. 2.1. 概况(Overview)
    • 3.2. 2.2. 实例状态
    • 3.3. 2.3. JMX整合
    • 3.4. 2.4. 对JCA的支持
    • 3.5. 2.5. 上下文相关的(Contextual)Session
  • 4. 第 3 章 配置
    • 4.1. 3.1. 可编程的配置方式
    • 4.2. 3.2. 获得SessionFactory
    • 4.3. 3.3. JDBC连接
    • 4.4. 3.4. 可选的配置属性
      • 4.4.1. 3.4.1. SQL方言
      • 4.4.2. 3.4.2. 外连接抓取(Outer Join Fetching)
      • 4.4.3. 3.4.3. 二进制流 (Binary Streams)
      • 4.4.4. 3.4.4. 二级缓存与查询缓存
      • 4.4.5. 3.4.5. 查询语言中的替换
      • 4.4.6. 3.4.6. Hibernate的统计(statistics)机制
    • 4.5. 3.5. 日志
    • 4.6. 3.6. 实现`NamingStrategy`
    • 4.7. 3.7. XML配置文件
    • 4.8. 3.8. J2EE应用程序服务器的集成
      • 4.8.1. 3.8.1. 事务策略配置
      • 4.8.2. 3.8.2. JNDI绑定的`SessionFactory`
      • 4.8.3. 3.8.3. 在JTA环境下使用Current Session context (当前session上下文)管理
      • 4.8.4. 3.8.4. JMX部署
  • 5. 第 4 章 持久化类(Persistent Classes)
    • 5.1. 4.1. 一个简单的POJO例子
      • 5.1.1. 4.1.1. 实现一个默认的(即无参数的)构造方法(constructor)
      • 5.1.2. 4.1.2. 提供一个标识属性(identifier property)(可选)
      • 5.1.3. 4.1.3. 使用非final的类 (可选)
      • 5.1.4. 4.1.4. 为持久化字段声明访问器(accessors)和是否可变的标志(mutators)(可选)
    • 5.2. 4.2. 实现继承(Inheritance)
    • 5.3. 4.3. 实现`equals()`和`hashCode()`
    • 5.4. 4.4. 动态模型(Dynamic models)
    • 5.5. 4.5. 元组片断映射(Tuplizers)
  • 6. 第 5 章 对象/关系数据库映射基础(Basic O/R Mapping)
    • 6.1. 5.1. 映射定义(Mapping declaration)
      • 6.1.1. 5.1.1. Doctype
      • 6.1.2. 5.1.1.1. EntityResolver
      • 6.1.3. 5.1.2. hibernate-mapping
      • 6.1.4. 5.1.3. class
      • 6.1.5. 5.1.4. id
      • 6.1.6. 5.1.4.1. Generator
      • 6.1.7. 5.1.4.2. 高/低位算法(Hi/Lo Algorithm)
      • 6.1.8. 5.1.4.3. UUID算法(UUID Algorithm )
      • 6.1.9. 5.1.4.4. 标识字段和序列(Identity columns and Sequences)
      • 6.1.10. 5.1.4.5. 程序分配的标识符(Assigned Identifiers)
      • 6.1.11. 5.1.4.6. 触发器实现的主键生成器(Primary keys assigned by triggers)
      • 6.1.12. 5.1.5. composite-id
      • 6.1.13. 5.1.6. 鉴别器(discriminator)
      • 6.1.14. 5.1.7. 版本(version)(可选)
      • 6.1.15. 5.1.8. timestamp (可选)
      • 6.1.16. 5.1.9. property
      • 6.1.17. 5.1.10. 多对一(many-to-one)
      • 6.1.18. 5.1.11. 一对一
      • 6.1.19. 5.1.12. 自然ID(natural-id)
      • 6.1.20. 5.1.13. 组件(component), 动态组件(dynamic-component)
      • 6.1.21. 5.1.14. properties
      • 6.1.22. 5.1.15. 子类(subclass)
      • 6.1.23. 5.1.16. 连接的子类(joined-subclass)
      • 6.1.24. 5.1.17. 联合子类(union-subclass)
      • 6.1.25. 5.1.18. 连接(join)
      • 6.1.26. 5.1.19. 键(key)
      • 6.1.27. 5.1.20. 字段和规则元素(column and formula elements)
      • 6.1.28. 5.1.21. 引用(import)
      • 6.1.29. 5.1.22. any
    • 6.2. 5.2. Hibernate 的类型
      • 6.2.1. 5.2.1. 实体(Entities)和值(values)
      • 6.2.2. 5.2.2. 基本值类型
      • 6.2.3. 5.2.3. 自定义值类型
    • 6.3. 5.3. 多次映射同一个类
    • 6.4. 5.4. SQL中引号包围的标识符
    • 6.5. 5.5. 其他元数据(Metadata)
      • 6.5.1. 5.5.1. 使用 XDoclet 标记
      • 6.5.2. 5.5.2. 使用 JDK 5.0 的注解(Annotation)
    • 6.6. 5.6. 数据库生成属性(Generated Properties)
    • 6.7. 5.7. 辅助数据库对象(Auxiliary Database Objects)
  • 7. 第 6 章 集合类(Collections)映射
    • 7.1. 6.1. 持久化集合类(Persistent collections)
    • 7.2. 6.2. 集合映射( Collection mappings )
      • 7.2.1. 6.2.1. 集合外键(Collection foreign keys)
      • 7.2.2. 6.2.2. 集合元素(Collection elements)
      • 7.2.3. 6.2.3. 索引集合类(Indexed collections)
      • 7.2.4. 6.2.4. 值集合于多对多关联(Collections of values and many-to-many associations)
      • 7.2.5. 6.2.5. 一对多关联(One-to-many Associations)
    • 7.3. 6.3. 高级集合映射(Advanced collection mappings)
      • 7.3.1. 6.3.1. 有序集合(Sorted collections)
      • 7.3.2. 6.3.2. 双向关联(Bidirectional associations)
      • 7.3.3. 6.3.3. 双向关联,涉及有序集合类
      • 7.3.4. 6.3.4. 三重关联(Ternary associations)
      • 7.3.5. 6.3.5. `使用<idbag>`
    • 7.4. 6.4. 集合例子(Collection example)
  • 8. 第 7 章 关联关系映射
    • 8.1. 7.1. 介绍
    • 8.2. 7.2. 单向关联(Unidirectional associations)
      • 8.2.1. 7.2.1. 多对一(many to one)
      • 8.2.2. 7.2.2. 一对一(one to one)
      • 8.2.3. 7.2.3. 一对多(one to many)
    • 8.3. 7.3. 使用连接表的单向关联(Unidirectional associations with join tables)
      • 8.3.1. 7.3.1. 一对多(one to many)
      • 8.3.2. 7.3.2. 多对一(many to one)
      • 8.3.3. 7.3.3. 一对一(one to one)
      • 8.3.4. 7.3.4. 多对多(many to many)
    • 8.4. 7.4. 双向关联(Bidirectional associations)
      • 8.4.1. 7.4.1. 一对多(one to many) / 多对一(many to one)
      • 8.4.2. 7.4.2. 一对一(one to one)
    • 8.5. 7.5. 使用连接表的双向关联(Bidirectional associations with join tables)
      • 8.5.1. 7.5.1. 一对多(one to many) /多对一( many to one)
      • 8.5.2. 7.5.2. 一对一(one to one)
      • 8.5.3. 7.5.3. 多对多(many to many)
    • 8.6. 7.6. 更复杂的关联映射
  • 9. 第 8 章 组件(Component)映射
    • 9.1. 8.1. 依赖对象(Dependent objects)
    • 9.2. 8.2. 在集合中出现的依赖对象 (Collections of dependent objects)
    • 9.3. 8.3. 组件作为Map的索引(Components as Map indices )
    • 9.4. 8.4. 组件作为联合标识符(Components as composite identifiers)
    • 9.5. 8.5. 动态组件 (Dynamic components)
  • 10. 第 9 章 继承映射(Inheritance Mappings)
    • 10.1. 9.1. 三种策略
      • 10.1.1. 9.1.1. 每个类分层结构一张表(Table per class hierarchy)
      • 10.1.2. 9.1.2. 每个子类一张表(Table per subclass)
      • 10.1.3. 9.1.3. 每个子类一张表(Table per subclass),使用辨别标志(Discriminator)
      • 10.1.4. 9.1.4. 混合使用“每个类分层结构一张表”和“每个子类一张表”
      • 10.1.5. 9.1.5. 每个具体类一张表(Table per concrete class)
      • 10.1.6. 9.1.6. Table per concrete class, using implicit polymorphism
      • 10.1.7. 9.1.7. 隐式多态和其他继承映射混合使用
    • 10.2. 9.2. 限制
  • 11. 第 10 章 与对象共事
    • 11.1. 10.1. Hibernate对象状态(object states)
    • 11.2. 10.2. 使对象持久化
    • 11.3. 10.3. 装载对象
    • 11.4. 10.4. 查询
      • 11.4.1. 10.4.1. 执行查询
      • 11.4.2. 10.4.1.1. 迭代式获取结果(Iterating results)
      • 11.4.3. 10.4.1.2. 返回元组(tuples)的查询
      • 11.4.4. 10.4.1.3. 标量(Scalar)结果
      • 11.4.5. 10.4.1.4. 绑定参数
      • 11.4.6. 10.4.1.5. 分页
      • 11.4.7. 10.4.1.6. 可滚动遍历(Scrollable iteration)
      • 11.4.8. 10.4.1.7. 外置命名查询(Externalizing named queries)
      • 11.4.9. 10.4.2. 过滤集合
      • 11.4.10. 10.4.3. 条件查询(Criteria queries)
      • 11.4.11. 10.4.4. 使用原生SQL的查询
    • 11.5. 10.5. 修改持久对象
    • 11.6. 10.6. 修改脱管(Detached)对象
    • 11.7. 10.7. 自动状态检测
    • 11.8. 10.8. 删除持久对象
    • 11.9. 10.9. 在两个不同数据库间复制对象
    • 11.10. 10.10. Session刷出(flush)
    • 11.11. 10.11. 传播性持久化(transitive persistence)
    • 11.12. 10.12. 使用元数据
Powered by GitBook