📄 index.html
字号:
<title>HIBERNATE - 符合Java习惯的关系数据库持久化</title><link rel="stylesheet" href="../shared/css/html.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.65.1"><link rel="home" href="index.html" title="HIBERNATE - 符合Java习惯的关系数据库持久化"><link rel="next" href="preface.html" title="前言"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">HIBERNATE - 符合Java习惯的关系数据库持久化</th></tr><tr><td width="20%" align="left"> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="preface.html">下一页</a></td></tr></table><hr></div><div class="book" lang="zh-cn"><div class="titlepage"><div><div><h1 class="title"><a name="d0e1"></a>HIBERNATE - 符合Java习惯的关系数据库持久化</h1></div><div><h2 class="subtitle">Hibernate参考文档</h2></div><div><p class="releaseinfo">2.1.6</p></div></div><div></div><hr></div><div class="toc"><p><b>目录</b></p><dl><dt><span class="preface"><a href="preface.html">前言</a></span></dt><dd><dl><dt><span class="sect1"><a href="preface.html#preface-translate-comments-zh-cn">1. 翻译说明</a></span></dt></dl></dd><dt><span class="chapter"><a href="quickstart.html">1. 在Tomcat中快速上手</a></span></dt><dd><dl><dt><span class="sect1"><a href="quickstart.html#quickstart-intro">1.1. 开始Hibernate之旅</a></span></dt><dt><span class="sect1"><a href="quickstart.html#quickstart-persistentclass">1.2. 第一个可持久化类</a></span></dt><dt><span class="sect1"><a href="quickstart.html#quickstart-mapping">1.3. 映射cat</a></span></dt><dt><span class="sect1"><a href="quickstart.html#quickstart-playingwithcats">1.4. 与猫同乐</a></span></dt><dt><span class="sect1"><a href="quickstart.html#quickstart-summary">1.5. 结语</a></span></dt></dl></dd><dt><span class="chapter"><a href="architecture.html">2. 体系结构</a></span></dt><dd><dl><dt><span class="sect1"><a href="architecture.html#architecture-overview">2.1. 总览</a></span></dt><dt><span class="sect1"><a href="architecture.html#architecture-jmx">2.2. JMX集成</a></span></dt><dt><span class="sect1"><a href="architecture.html#architecture-jca">2.3. JCA支持</a></span></dt></dl></dd><dt><span class="chapter"><a href="session-configuration.html">3. SessionFactory配置</a></span></dt><dd><dl><dt><span class="sect1"><a href="session-configuration.html#configuration-programmatic">3.1. 可编程配置方式</a></span></dt><dt><span class="sect1"><a href="session-configuration.html#configuration-sessionfactory">3.2. 获取SessionFactory</a></span></dt><dt><span class="sect1"><a href="session-configuration.html#configuration-userjdbc">3.3. 用户自行提供JDBC连接</a></span></dt><dt><span class="sect1"><a href="session-configuration.html#configuration-hibernatejdbc">3.4. Hibernate提供的JDBC连接</a></span></dt><dt><span class="sect1"><a href="session-configuration.html#configuration-optional">3.5. 可选配置属性</a></span></dt><dd><dl><dt><span class="sect2"><a href="session-configuration.html#configuration-optional-dialects">3.5.1. SQL Dialects SQL 方言</a></span></dt><dt><span class="sect2"><a href="session-configuration.html#configuration-optional-outerjoin">3.5.2. 外连接抓取(Outer Join Fetching )</a></span></dt><dt><span class="sect2"><a href="session-configuration.html#configuration-optional-binarystreams">3.5.3. 二进制流</a></span></dt><dt><span class="sect2"><a href="session-configuration.html#configuration-optional-cacheprovider">3.5.4. 自定义CacheProvider</a></span></dt><dt><span class="sect2"><a href="session-configuration.html#configuration-optional-transactionstrategy">3.5.5. 事务策略配置</a></span></dt><dt><span class="sect2"><a href="session-configuration.html#configuration-optional-jndi">3.5.6. 绑定SessionFactory到JNDI</a></span></dt><dt><span class="sect2"><a href="session-configuration.html#configuration-optional-querysubstitution">3.5.7. 查询语言替换 </a></span></dt></dl></dd><dt><span class="sect1"><a href="session-configuration.html#configuration-logging">3.6. Logging</a></span></dt><dt><span class="sect1"><a href="session-configuration.html#configuration-namingstrategy">3.7. 实现NamingStrategy(命名策略)</a></span></dt><dt><span class="sect1"><a href="session-configuration.html#configuration-xmlconfig">3.8. XML配置文件</a></span></dt></dl></dd><dt><span class="chapter"><a href="persistent-classes.html">4. 持久化类(Persistent Classes)</a></span></dt><dd><dl><dt><span class="sect1"><a href="persistent-classes.html#persistent-classes-pojo">4.1. POJO简单示例</a></span></dt><dd><dl><dt><span class="sect2"><a href="persistent-classes.html#persistent-classes-pojo-accessors">4.1.1. 为持久化字段声明访问器(accessors)和是否可变的标志(mutators)</a></span></dt><dt><span class="sect2"><a href="persistent-classes.html#persistent-classes-pojo-constructor">4.1.2. 实现一个默认的构造方法(constructor)</a></span></dt><dt><span class="sect2"><a href="persistent-classes.html#persistent-classes-pojo-identifier">4.1.3. 提供一个标识属性(identifier property)(可选) </a></span></dt><dt><span class="sect2"><a href="persistent-classes.html#persistent-classes-pojo-final">4.1.4. 建议使用不是final的类 (可选)</a></span></dt></dl></dd><dt><span class="sect1"><a href="persistent-classes.html#persistent-classes-inheritance">4.2. 实现继承(Inheritance)</a></span></dt><dt><span class="sect1"><a href="persistent-classes.html#persistent-classes-equalshashcode">4.3. 实现equals()和hashCode()</a></span></dt><dt><span class="sect1"><a href="persistent-classes.html#persistent-classes-lifecycle">4.4. 持久化生命周期(Lifecycle)中的回调(Callbacks)</a></span></dt><dt><span class="sect1"><a href="persistent-classes.html#persistent-classes-validatable">4.5. 合法性检查(Validatable)回调</a></span></dt><dt><span class="sect1"><a href="persistent-classes.html#persistent-classes-xdoclet">4.6. XDoclet标记示例</a></span></dt></dl></dd><dt><span class="chapter"><a href="mapping.html">5. O/R Mapping基础</a></span></dt><dd><dl><dt><span class="sect1"><a href="mapping.html#mapping-declaration">5.1. 映射声明(Mapping declaration)</a></span></dt><dd><dl><dt><span class="sect2"><a href="mapping.html#mapping-declaration-doctype">5.1.1. Doctype</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-declaration-mapping">5.1.2. hibernate-mapping</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-declaration-class">5.1.3. class</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-declaration-id">5.1.4. id</a></span></dt><dd><dl><dt><span class="sect3"><a href="mapping.html#mapping-declaration-id-generator">5.1.4.1. generator</a></span></dt><dt><span class="sect3"><a href="mapping.html#mapping-declaration-id-hilo">5.1.4.2. 高/低位算法(Hi/Lo Algorithm)</a></span></dt><dt><span class="sect3"><a href="mapping.html#mapping-declaration-id-uuid">5.1.4.3. UUID算法(UUID Algorithm )</a></span></dt><dt><span class="sect3"><a href="mapping.html#mapping-declaration-id-sequences">5.1.4.4. 标识字段和序列(Identity columns and Sequences)</a></span></dt><dt><span class="sect3"><a href="mapping.html#mapping-declaration-id-assignedd">5.1.4.5. 程序分配的标识符(Assigned Identifiers)</a></span></dt></dl></dd><dt><span class="sect2"><a href="mapping.html#mapping-declaration-compositeid">5.1.5. composite-id 联合ID</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-declaration-discriminator">5.1.6. 识别器(discriminator)</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-declaration-version">5.1.7. 版本(version)(可选)</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-declaration-timestamp">5.1.8. 时间戳(timestamp )(可选)</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-declaration-property">5.1.9. property</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-declaration-manytoone">5.1.10. 多对一(many-to-one)</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-declaration-onetoone">5.1.11. 一对一</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-declaration-component">5.1.12. 组件(component), 动态组件(dynamic-component)</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-declaration-subclass">5.1.13. 子类(subclass)</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-declaration-joinedsubclass">5.1.14. 连接的子类(joined-subclass)</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-declaration-collections">5.1.15. map, set, list, bag</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-declaration-import">5.1.16. 引用(import)</a></span></dt></dl></dd><dt><span class="sect1"><a href="mapping.html#mapping-types">5.2. Hibernate 的类型</a></span></dt><dd><dl><dt><span class="sect2"><a href="mapping.html#mapping-types-entitiesvalues">5.2.1. 实体(Entities)和值(values)</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-types-basictypes">5.2.2. 基本值类型</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-types-enum">5.2.3. 持久化枚举(Persistent enum)类型</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-types-custom">5.2.4. 自定义值类型</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-types-anymapping">5.2.5. 映射到"任意"(any)类型</a></span></dt></dl></dd><dt><span class="sect1"><a href="mapping.html#mapping-quotedidentifiers">5.3. SQL中引号包围的标识符</a></span></dt><dt><span class="sect1"><a href="mapping.html#mapping-modularfiles">5.4. 映射文件的模块化(Modular mapping files)</a></span></dt></dl></dd><dt><span class="chapter"><a href="collections.html">6. 集合类(Collections)映射</a></span></dt><dd><dl><dt><span class="sect1"><a href="collections.html#collections-persistent">6.1. 持久化集合类(Persistent Collections)</a></span></dt><dt><span class="sect1"><a href="collections.html#collections-mapping">6.2. 映射集合(Mapping a Collection)</a></span></dt><dt><span class="sect1"><a href="collections.html#collections-ofvalues">6.3. 值集合和多对多关联(Collections of Values and Many-To-Many Associations)</a></span></dt><dt><span class="sect1"><a href="collections.html#collections-onetomany">6.4. 一对多关联(One-To-Many Associations)</a></span></dt><dt><span class="sect1"><a href="collections.html#collections-lazy">6.5. 延迟初始化(延迟加载)(Lazy Initialization)</a></span></dt><dt><span class="sect1"><a href="collections.html#collections-sorted">6.6. 集合排序(Sorted Collections)</a></span></dt><dt><span class="sect1"><a href="collections.html#collections-idbag">6.7. 使用<idbag></a></span></dt><dt><span class="sect1"><a href="collections.html#collections-bidirectional">6.8. 双向关联(Bidirectional Associations)</a></span></dt><dt><span class="sect1"><a href="collections.html#collections-ternary">6.9. 三重关联(Ternary Associations)</a></span></dt><dt><span class="sect1"><a href="collections.html#collections-heterogeneous">6.10. 异类关联(Heterogeneous Associations)</a></span></dt><dt><span class="sect1"><a href="collections.html#collections-example">6.11. 集合例子(Collection example)</a></span></dt></dl></dd><dt><span class="chapter"><a href="components.html">7. 组件(Component)映射</a></span></dt><dd><dl><dt><span class="sect1"><a href="components.html#components-dependentobjects">7.1. 依赖对象(Dependent objects)</a></span></dt><dt><span class="sect1"><a href="components.html#components-incollections">7.2. 在集合中出现的依赖对象</a></span></dt><dt><span class="sect1"><a href="components.html#components-asmapindex">7.3. 组件作为Map的索引(Components as Map indices )</a></span></dt><dt><span class="sect1"><a href="components.html#components-compositeid">7.4. 组件作为联合标识符(Components as composite identifiers)</a></span></dt><dt><span class="sect1"><a href="components.html#components-dynamic">7.5. 动态组件 (Dynamic components)</a></span></dt></dl></dd><dt><span class="chapter"><a href="inheritance.html">8. 继承映射(Inheritance Mappings)</a></span></dt><dd><dl><dt><span class="sect1"><a href="inheritance.html#inheritance-strategies">8.1. 三种策略</a></span></dt><dt><span class="sect1"><a href="inheritance.html#inheritance-limitations">8.2. 限制</a></span></dt></dl></dd><dt><span class="chapter"><a href="manipulatingdata.html">9. 操作持久化数据(Manipulating Persistent Data)</a></span></dt><dd><dl><dt><span class="sect1"><a href="manipulatingdata.html#manipulatingdata-creating">9.1. 创建一个持久化对象</a></span></dt><dt><span class="sect1"><a href="manipulatingdata.html#manipulatingdata-loading">9.2. 装载对象</a></span></dt><dt><span class="sect1"><a href="manipulatingdata.html#manipulatingdata-querying">9.3. Querying</a></span></dt><dd><dl><dt><span class="sect2"><a href="manipulatingdata.html#manipulatingdata-scalarqueries">9.3.1. 标量查询(Scalar query)</a></span></dt><dt><span class="sect2"><a href="manipulatingdata.html#manipulatingdata-queryinterface">9.3.2. 查询接口(Query interface)</a></span></dt><dt><span class="sect2"><a href="manipulatingdata.html#manipulatingdata-scrolling">9.3.3. 可滚动迭代(Scrollable iteration)</a></span></dt><dt><span class="sect2"><a href="manipulatingdata.html#manipulatingdata-filtering">9.3.4. 过滤集合类(Filtering collections)</a></span></dt><dt><span class="sect2"><a href="manipulatingdata.html#manipulatingdata-criteria">9.3.5. 条件查询</a></span></dt><dt><span class="sect2"><a href="manipulatingdata.html#manipulatingdata-nativesql">9.3.6. 使用本地SQL的查询</a></span></dt></dl></dd><dt><span class="sect1"><a href="manipulatingdata.html#manipulatingdata-updating">9.4. 更新对象</a></span></dt><dd><dl><dt><span class="sect2"><a href="manipulatingdata.html#manipulatingdata-updating-insession">9.4.1. 在同一Session中更新</a></span></dt><dt><span class="sect2"><a href="manipulatingdata.html#manipulatingdata-updating-detached">9.4.2. 更新从session脱离的对象</a></span></dt><dt><span class="sect2"><a href="manipulatingdata.html#manipulatingdata-update-lock">9.4.3. 把与Session脱离的对象重新绑定</a></span></dt></dl></dd><dt><span class="sect1"><a href="manipulatingdata.html#manipulatingdata-deleting">9.5. 删除持久化对象</a></span></dt><dt><span class="sect1"><a href="manipulatingdata.html#manipulatingdata-flushing">9.6. 同步(Flush)</a></span></dt><dt><span class="sect1"><a href="manipulatingdata.html#manipulatingdata-endingsession">9.7. 结束一个Session</a></span></dt><dd><dl><dt><span class="sect2"><a href="manipulatingdata.html#manipulatingdata-endingsession-flushing">9.7.1. 同步(Flush) Session</a></span></dt><dt><span class="sect2"><a href="manipulatingdata.html#manipulatingdata-endingsession-commit">9.7.2. 提交数据库事务</a></span></dt><dt><span class="sect2"><a href="manipulatingdata.html#manipulatingdata-endingsession-close">9.7.3. 关闭Session</a></span></dt><dt><span class="sect2"><a href="manipulatingdata.html#manipulatingdata-endingsession-exceptions">9.7.4. 处理异常</a></span></dt></dl></dd><dt><span class="sect1"><a href="manipulatingdata.html#manipulatingdata-graphs">9.8. 生命周期和对象图(Lifecyles and object graphs)</a></span></dt><dt><span class="sect1"><a href="manipulatingdata.html#manipulatingdata-interceptors">9.9. 拦截器(Interceptors)</a></span></dt><dt><span class="sect1"><a href="manipulatingdata.html#manipulatingdata-metadata">9.10. 元数据(Metadata) API</a></span></dt></dl></dd><dt><span class="chapter"><a href="transactions.html">10. 事务和并行(Transactions And Concurrency)</a></span></dt><dd><dl><dt><span class="sect1"><a href="transactions.html#ttransactions-basics">10.1. 配置,会话和工厂(Configurations, Sessions and Factories)</a></span></dt><dt><span class="sect1"><a href="transactions.html#transactions-threads">10.2. 线程和连接(Threads and connections)</a></span></dt><dt><span class="sect1"><a href="transactions.html#transactions-identity">10.3. 考虑对象辨别</a></span></dt><dt><span class="sect1"><a href="transactions.html#transactions-optimistic">10.4. 乐观并发控制(Optimistic concurrency control)</a></span></dt><dd><dl><dt><span class="sect2"><a href="transactions.html#transactions-optimistic-longsession">10.4.1. 使用长生命周期带有自动版本化的会话</a></span></dt><dt><span class="sect2"><a href="transactions.html#transactions-optimistic-detached">10.4.2. 使用带有自动版本化的多个会话</a></span></dt><dt><span class="sect2"><a href="transactions.html#transactions-optimistic-manual">10.4.3. 应用程序自己进行版本检查</a></span></dt></dl></dd><dt><span class="sect1"><a href="transactions.html#transactions-disconnection">10.5. 会话断开连接(Session disconnection)</a></span></dt><dt><span class="sect1"><a href="transactions.html#transactions-locking">10.6. 悲观锁定(Pessimistic Locking)</a></span></dt></dl></dd><dt><span class="chapter"><a href="queryhql.html">11. Hibernate查询语言(Query Language), 即HQL</a></span></dt><dd><dl><dt><span class="sect1"><a href="queryhql.html#queryhql-casesensitivity">11.1. 大小写敏感性(Case Sensitivity)</a></span></dt><dt><span class="sect1"><a href="queryhql.html#queryhql-from">11.2. from 子句</a></span></dt><dt><span class="sect1"><a href="queryhql.html#queryhql-joins">11.3. 联合(Associations)和连接(joins)</a></span></dt><dt><span class="sect1"><a href="queryhql.html#queryhql-select">11.4. select子句</a></span></dt><dt><span class="sect1"><a href="queryhql.html#queryhql-aggregation">11.5. 统计函数(Aggregate functions)</a></span></dt><dt><span class="sect1"><a href="queryhql.html#queryhql-polymorphism">11.6. 多态(polymorphism)查询</a></span></dt><dt><span class="sect1"><a href="queryhql.html#queryhql-where">11.7. where子句</a></span></dt><dt><span class="sect1"><a href="queryhql.html#queryhql-expressions">11.8. 表达式(Expressions)</a></span></dt><dt><span class="sect1"><a href="queryhql.html#queryhql-ordering">11.9. order by 子句</a></span></dt><dt><span class="sect1"><a href="queryhql.html#queryhql-grouping">11.10. group by 子句</a></span></dt><dt><span class="sect1"><a href="queryhql.html#queryhql-subqueries">11.11. 子查询</a></span></dt><dt><span class="sect1"><a href="queryhql.html#queryhql-examples">11.12. HQL示例</a></span></dt><dt><span class="sect1"><a href="queryhql.html#queryhql-tipstricks">11.13. 提示和技巧(Tips & Tricks)</a></span></dt></dl></dd><dt><span class="chapter"><a href="querycriteria.html">12. 条件查询(Criteria Query)</a></span></dt><dd><dl><dt><span class="sect1"><a href="querycriteria.html#querycriteria-creating">12.1. 创建一个Criteria实例</a></span></dt><dt><span class="sect1"><a href="querycriteria.html#querycriteria-narrowing">12.2. 缩小结果集范围</a></span></dt><dt><span class="sect1"><a href="querycriteria.html#querycriteria-ordering">12.3. 对结果排序</a></span></dt><dt><span class="sect1"><a href="querycriteria.html#querycriteria-associations">12.4. 关联(Associations)</a></span></dt><dt><span class="sect1"><a href="querycriteria.html#querycriteria-dynamicfetching">12.5. 动态关联对象获取(Dynamic association fetching)</a></span></dt><dt><span class="sect1"><a href="querycriteria.html#querycriteria-examples">12.6. 根据示例查询(Example queries)</a></span></dt></dl></dd><dt><span class="chapter"><a href="querysql.html">13. 原生SQL查询</a></span></dt><dd><dl><dt><span class="sect1"><a href="querysql.html#querysql-creating">13.1. 创建一个基于SQL的Query</a></span></dt><dt><span class="sect1"><a href="querysql.html#querysql-aliasreferences">13.2. 别名和属性引用</a></span></dt><dt><span class="sect1"><a href="querysql.html#querysql-namedqueries">13.3. 为SQL查询命名</a></span></dt></dl></dd><dt><span class="chapter"><a href="performance.html">14. 性能提升(Improving performance)</a></span></dt><dd><dl><dt><span class="sect1"><a href="performance.html#performance-collections">14.1. 理解集合的性能</a></span></dt><dd><dl><dt><span class="sect2"><a href="performance.html#performance-collections-taxonomy">14.1.1. 分类</a></span></dt><dt><span class="sect2"><a href="performance.html#performance-collections-mostefficientupdate">14.1.2. Lists, maps 和sets用于更新效率最高</a></span></dt><dt><span class="sect2"><a href="performance.html#performance-collections-mostefficentinverse">14.1.3. Bag和list是反向集合类中效率最高的</a></span></dt><dt><span class="sect2"><a href="performance.html#performance-collections-oneshotdelete">14.1.4. 一次性删除(One shot delete)</a></span></dt></dl></dd><dt><span class="sect1"><a href="performance.html#performance-proxies">14.2. 用于延迟装载的代理</a></span></dt><dt><span class="sect1"><a href="performance.html#performance-cache">14.3. 第二层缓存(The Second Level Cache)s</a></span></dt><dd><dl><dt><span class="sect2"><a href="performance.html#performance-cache-mapping">14.3.1. 对映射(Mapping)缓冲</a></span></dt><dt><span class="sect2"><a href="performance.html#performance-cache-readonly">14.3.2. 策略:只读缓存</a></span></dt><dt><span class="sect2"><a href="performance.html#performance-cache-readwrite">14.3.3. 策略:读/写缓存</a></span></dt><dt><span class="sect2"><a href="performance.html#performance-cache-nonstrict">14.3.4. 策略:不严格的读/写缓存</a></span></dt><dt><span class="sect2"><a href="performance.html#performance-cache-transactional">14.3.5. 策略:事务缓存(transactional)</a></span></dt></dl></dd><dt><span class="sect1"><a href="performance.html#performance-sessioncache">14.4. 管理Session缓存</a></span></dt><dt><span class="sect1"><a href="performance.html#performance-querycache">14.5. 查询缓存(Query Cache)</a></span></dt></dl></dd><dt><span class="chapter"><a href="toolsetguide.html">15. 工具箱指南</a></span></dt><dd><dl><dt><span class="sect1"><a href="toolsetguide.html#toolsetguide-s1">15.1. Schema 生成器(Schema Generation)</a></span></dt><dd><dl><dt><span class="sect2"><a href="toolsetguide.html#toolsetguide-s1-2">15.1.1. 对schema定制化(Customizing the schema)</a></span></dt><dt><span class="sect2"><a href="toolsetguide.html#toolsetguide-s1-3">15.1.2. 运行该工具</a></span></dt><dt><span class="sect2"><a href="toolsetguide.html#toolsetguide-s1-4">15.1.3. 属性(Properties)</a></span></dt><dt><span class="sect2"><a href="toolsetguide.html#toolsetguide-s1-5">15.1.4. 使用Ant(Using Ant)</a></span></dt><dt><span class="sect2"><a href="toolsetguide.html#toolsetguide-s1-6">15.1.5. 对schema的增量更新(Incremental schema updates)</a></span></dt><dt><span class="sect2"><a href="toolsetguide.html#toolsetguide-s1-7">15.1.6. 用Ant来增量更新schema(Using Ant for incremental schema updates)</a></span></dt></dl></dd><dt><span class="sect1"><a href="toolsetguide.html#toolsetguide-s2">15.2. 代码生成(Code Generation)</a></span></dt><dd><dl><dt><span class="sect2"><a href="toolsetguide.html#toolsetguide-s2-1">15.2.1. 配置文件(可选)</a></span></dt><dt><span class="sect2"><a href="toolsetguide.html#toolsetguide-s2-2">15.2.2. meta属性</a></span></dt><dt><span class="sect2"><a href="toolsetguide.html#toolsetguide-s2-3">15.2.3. 基本的finder生成器(Basic finder generator)</a></span></dt><dt><span class="sect2"><a href="toolsetguide.html#toolsetguide-s2-4">15.2.4. 基于Velocity的渲染器/生成器(Velocity based renderer/generator)</a></span></dt></dl></dd><dt><span class="sect1"><a href="toolsetguide.html#toolsetguide-s3">15.3. 映射文件生成器(Mapping File Generation)</a></span></dt><dd><dl><dt><span class="sect2"><a href="toolsetguide.html#toolsetguide-s3-1">15.3.1. 运行此工具</a></span></dt></dl></dd></dl></dd><dt><span class="chapter"><a href="example-parentchild.html">16. 示例:父子关系(Parent Child Relationships)</a></span></dt><dd><dl><dt><span class="sect1"><a href="example-parentchild.html#example-parentchild-collections">16.1. 关于collections</a></span></dt><dt><span class="sect1"><a href="example-parentchild.html#example-parentchild-bidir">16.2. 双向的一对多关系(Bidirectional one-to-many)</a></span></dt><dt><span class="sect1"><a href="example-parentchild.html#example-parentchild-cascades">16.3. 级联生命周期(Cascading lifecycle)</a></span></dt><dt><span class="sect1"><a href="example-parentchild.html#example-parentchild-update">16.4. 级联更新(Using cascading update())</a></span></dt><dt><span class="sect1"><a href="example-parentchild.html#example-parentchild-conclusion">16.5. 结论</a></span></dt></dl></dd><dt><span class="chapter"><a href="example-weblog.html">17. 示例:Weblog 应用程序</a></span></dt><dd><dl><dt><span class="sect1"><a href="example-weblog.html#example-weblog-classes">17.1. 持久化类</a></span></dt><dt><span class="sect1"><a href="example-weblog.html#example-weblog-mappings">17.2. Hibernate 映射</a></span></dt><dt><span class="sect1"><a href="example-weblog.html#example-weblog-code">17.3. Hibernate 代码</a></span></dt></dl></dd><dt><span class="chapter"><a href="example-mappings.html">18. 示例:不同的映射</a></span></dt><dd><dl><dt><span class="sect1"><a href="example-mappings.html#example-mappings-emp">18.1. 雇员/雇主(Employer/Employee)</a></span></dt><dt><span class="sect1"><a href="example-mappings.html#example-mappings-authorwork">18.2. 作者/著作(Author/Work)</a></span></dt><dt><span class="sect1"><a href="example-mappings.html#example-mappings-customerorderproduct">18.3. 客户/订单/产品(Customer/Order/Product)</a></span></dt></dl></dd><dt><span class="chapter"><a href="best-practices.html">19. 最佳实践(Best Practices)</a></span></dt></dl></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="preface.html">下一页</a></td></tr><tr><td width="40%" align="left" valign="top"> </td><td width="20%" align="center"> </td><td width="40%" align="right" valign="top"> 前言</td></tr></table></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -