⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.html

📁 图象处理
💻 HTML
📖 第 1 页 / 共 3 页
字号:
   <title>HIBERNATE - &#31526;&#21512;Java&#20064;&#24815;&#30340;&#20851;&#31995;&#25968;&#25454;&#24211;&#25345;&#20037;&#21270;</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 - &#31526;&#21512;Java&#20064;&#24815;&#30340;&#20851;&#31995;&#25968;&#25454;&#24211;&#25345;&#20037;&#21270;"><link rel="next" href="preface.html" title="&#21069;&#35328;"></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 - &#31526;&#21512;Java&#20064;&#24815;&#30340;&#20851;&#31995;&#25968;&#25454;&#24211;&#25345;&#20037;&#21270;</th></tr><tr><td width="20%" align="left">&nbsp;</td><th width="60%" align="center">&nbsp;</th><td width="20%" align="right">&nbsp;<a accesskey="n" href="preface.html">&#19979;&#19968;&#39029;</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 - &#31526;&#21512;Java&#20064;&#24815;&#30340;&#20851;&#31995;&#25968;&#25454;&#24211;&#25345;&#20037;&#21270;</h1></div><div><h2 class="subtitle">Hibernate&#21442;&#32771;&#25991;&#26723;</h2></div><div><p class="releaseinfo">2.1.6</p></div></div><div></div><hr></div><div class="toc"><p><b>&#30446;&#24405;</b></p><dl><dt><span class="preface"><a href="preface.html">&#21069;&#35328;</a></span></dt><dd><dl><dt><span class="sect1"><a href="preface.html#preface-translate-comments-zh-cn">1. &#32763;&#35793;&#35828;&#26126;</a></span></dt></dl></dd><dt><span class="chapter"><a href="quickstart.html">1. &#22312;Tomcat&#20013;&#24555;&#36895;&#19978;&#25163;</a></span></dt><dd><dl><dt><span class="sect1"><a href="quickstart.html#quickstart-intro">1.1. &#24320;&#22987;Hibernate&#20043;&#26053;</a></span></dt><dt><span class="sect1"><a href="quickstart.html#quickstart-persistentclass">1.2. &#31532;&#19968;&#20010;&#21487;&#25345;&#20037;&#21270;&#31867;</a></span></dt><dt><span class="sect1"><a href="quickstart.html#quickstart-mapping">1.3. &#26144;&#23556;cat</a></span></dt><dt><span class="sect1"><a href="quickstart.html#quickstart-playingwithcats">1.4. &#19982;&#29483;&#21516;&#20048;</a></span></dt><dt><span class="sect1"><a href="quickstart.html#quickstart-summary">1.5. &#32467;&#35821;</a></span></dt></dl></dd><dt><span class="chapter"><a href="architecture.html">2. &#20307;&#31995;&#32467;&#26500;</a></span></dt><dd><dl><dt><span class="sect1"><a href="architecture.html#architecture-overview">2.1. &#24635;&#35272;</a></span></dt><dt><span class="sect1"><a href="architecture.html#architecture-jmx">2.2. JMX&#38598;&#25104;</a></span></dt><dt><span class="sect1"><a href="architecture.html#architecture-jca">2.3. JCA&#25903;&#25345;</a></span></dt></dl></dd><dt><span class="chapter"><a href="session-configuration.html">3. SessionFactory&#37197;&#32622;</a></span></dt><dd><dl><dt><span class="sect1"><a href="session-configuration.html#configuration-programmatic">3.1. &#21487;&#32534;&#31243;&#37197;&#32622;&#26041;&#24335;</a></span></dt><dt><span class="sect1"><a href="session-configuration.html#configuration-sessionfactory">3.2. &#33719;&#21462;SessionFactory</a></span></dt><dt><span class="sect1"><a href="session-configuration.html#configuration-userjdbc">3.3. &#29992;&#25143;&#33258;&#34892;&#25552;&#20379;JDBC&#36830;&#25509;</a></span></dt><dt><span class="sect1"><a href="session-configuration.html#configuration-hibernatejdbc">3.4. Hibernate&#25552;&#20379;&#30340;JDBC&#36830;&#25509;</a></span></dt><dt><span class="sect1"><a href="session-configuration.html#configuration-optional">3.5. &#21487;&#36873;&#37197;&#32622;&#23646;&#24615;</a></span></dt><dd><dl><dt><span class="sect2"><a href="session-configuration.html#configuration-optional-dialects">3.5.1. SQL Dialects SQL &#26041;&#35328;</a></span></dt><dt><span class="sect2"><a href="session-configuration.html#configuration-optional-outerjoin">3.5.2. &#22806;&#36830;&#25509;&#25235;&#21462;&#65288;Outer Join Fetching &#65289;</a></span></dt><dt><span class="sect2"><a href="session-configuration.html#configuration-optional-binarystreams">3.5.3. &#20108;&#36827;&#21046;&#27969;</a></span></dt><dt><span class="sect2"><a href="session-configuration.html#configuration-optional-cacheprovider">3.5.4. &#33258;&#23450;&#20041;CacheProvider</a></span></dt><dt><span class="sect2"><a href="session-configuration.html#configuration-optional-transactionstrategy">3.5.5. &#20107;&#21153;&#31574;&#30053;&#37197;&#32622;</a></span></dt><dt><span class="sect2"><a href="session-configuration.html#configuration-optional-jndi">3.5.6. &#32465;&#23450;SessionFactory&#21040;JNDI</a></span></dt><dt><span class="sect2"><a href="session-configuration.html#configuration-optional-querysubstitution">3.5.7. &#26597;&#35810;&#35821;&#35328;&#26367;&#25442; </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. &#23454;&#29616;NamingStrategy&#65288;&#21629;&#21517;&#31574;&#30053;)</a></span></dt><dt><span class="sect1"><a href="session-configuration.html#configuration-xmlconfig">3.8. XML&#37197;&#32622;&#25991;&#20214;</a></span></dt></dl></dd><dt><span class="chapter"><a href="persistent-classes.html">4. &#25345;&#20037;&#21270;&#31867;(Persistent Classes)</a></span></dt><dd><dl><dt><span class="sect1"><a href="persistent-classes.html#persistent-classes-pojo">4.1. POJO&#31616;&#21333;&#31034;&#20363;</a></span></dt><dd><dl><dt><span class="sect2"><a href="persistent-classes.html#persistent-classes-pojo-accessors">4.1.1. &#20026;&#25345;&#20037;&#21270;&#23383;&#27573;&#22768;&#26126;&#35775;&#38382;&#22120;(accessors)&#21644;&#26159;&#21542;&#21487;&#21464;&#30340;&#26631;&#24535;(mutators)</a></span></dt><dt><span class="sect2"><a href="persistent-classes.html#persistent-classes-pojo-constructor">4.1.2. &#23454;&#29616;&#19968;&#20010;&#40664;&#35748;&#30340;&#26500;&#36896;&#26041;&#27861;&#65288;constructor&#65289;</a></span></dt><dt><span class="sect2"><a href="persistent-classes.html#persistent-classes-pojo-identifier">4.1.3. &#25552;&#20379;&#19968;&#20010;&#26631;&#35782;&#23646;&#24615;&#65288;identifier property&#65289;&#65288;&#21487;&#36873;&#65289; </a></span></dt><dt><span class="sect2"><a href="persistent-classes.html#persistent-classes-pojo-final">4.1.4. &#24314;&#35758;&#20351;&#29992;&#19981;&#26159;final&#30340;&#31867; (&#21487;&#36873;)</a></span></dt></dl></dd><dt><span class="sect1"><a href="persistent-classes.html#persistent-classes-inheritance">4.2. &#23454;&#29616;&#32487;&#25215;&#65288;Inheritance&#65289;</a></span></dt><dt><span class="sect1"><a href="persistent-classes.html#persistent-classes-equalshashcode">4.3. &#23454;&#29616;equals()&#21644;hashCode()</a></span></dt><dt><span class="sect1"><a href="persistent-classes.html#persistent-classes-lifecycle">4.4. &#25345;&#20037;&#21270;&#29983;&#21629;&#21608;&#26399;&#65288;Lifecycle&#65289;&#20013;&#30340;&#22238;&#35843;&#65288;Callbacks&#65289;</a></span></dt><dt><span class="sect1"><a href="persistent-classes.html#persistent-classes-validatable">4.5. &#21512;&#27861;&#24615;&#26816;&#26597;&#65288;Validatable&#65289;&#22238;&#35843;</a></span></dt><dt><span class="sect1"><a href="persistent-classes.html#persistent-classes-xdoclet">4.6. XDoclet&#26631;&#35760;&#31034;&#20363;</a></span></dt></dl></dd><dt><span class="chapter"><a href="mapping.html">5. O/R Mapping&#22522;&#30784;</a></span></dt><dd><dl><dt><span class="sect1"><a href="mapping.html#mapping-declaration">5.1. &#26144;&#23556;&#22768;&#26126;(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. &#39640;/&#20302;&#20301;&#31639;&#27861;&#65288;Hi/Lo Algorithm&#65289;</a></span></dt><dt><span class="sect3"><a href="mapping.html#mapping-declaration-id-uuid">5.1.4.3. UUID&#31639;&#27861;&#65288;UUID Algorithm &#65289;</a></span></dt><dt><span class="sect3"><a href="mapping.html#mapping-declaration-id-sequences">5.1.4.4. &#26631;&#35782;&#23383;&#27573;&#21644;&#24207;&#21015;&#65288;Identity columns and Sequences&#65289;</a></span></dt><dt><span class="sect3"><a href="mapping.html#mapping-declaration-id-assignedd">5.1.4.5. &#31243;&#24207;&#20998;&#37197;&#30340;&#26631;&#35782;&#31526;&#65288;Assigned Identifiers&#65289;</a></span></dt></dl></dd><dt><span class="sect2"><a href="mapping.html#mapping-declaration-compositeid">5.1.5. composite-id &#32852;&#21512;ID</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-declaration-discriminator">5.1.6. &#35782;&#21035;&#22120;&#65288;discriminator&#65289;</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-declaration-version">5.1.7. &#29256;&#26412;&#65288;version&#65289;(&#21487;&#36873;)</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-declaration-timestamp">5.1.8. &#26102;&#38388;&#25139;&#65288;timestamp &#65289;(&#21487;&#36873;)</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. &#22810;&#23545;&#19968;&#65288;many-to-one&#65289;</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-declaration-onetoone">5.1.11. &#19968;&#23545;&#19968;</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-declaration-component">5.1.12. &#32452;&#20214;&#65288;component&#65289;, &#21160;&#24577;&#32452;&#20214;&#65288;dynamic-component&#65289;</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-declaration-subclass">5.1.13. &#23376;&#31867;(subclass)</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-declaration-joinedsubclass">5.1.14. &#36830;&#25509;&#30340;&#23376;&#31867;&#65288;joined-subclass&#65289;</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. &#24341;&#29992;&#65288;import&#65289;</a></span></dt></dl></dd><dt><span class="sect1"><a href="mapping.html#mapping-types">5.2. Hibernate &#30340;&#31867;&#22411;</a></span></dt><dd><dl><dt><span class="sect2"><a href="mapping.html#mapping-types-entitiesvalues">5.2.1. &#23454;&#20307;&#65288;Entities&#65289;&#21644;&#20540;&#65288;values&#65289;</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-types-basictypes">5.2.2. &#22522;&#26412;&#20540;&#31867;&#22411;</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-types-enum">5.2.3. &#25345;&#20037;&#21270;&#26522;&#20030;&#65288;Persistent enum&#65289;&#31867;&#22411;</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-types-custom">5.2.4. &#33258;&#23450;&#20041;&#20540;&#31867;&#22411;</a></span></dt><dt><span class="sect2"><a href="mapping.html#mapping-types-anymapping">5.2.5. &#26144;&#23556;&#21040;"&#20219;&#24847;"(any)&#31867;&#22411;</a></span></dt></dl></dd><dt><span class="sect1"><a href="mapping.html#mapping-quotedidentifiers">5.3. SQL&#20013;&#24341;&#21495;&#21253;&#22260;&#30340;&#26631;&#35782;&#31526;</a></span></dt><dt><span class="sect1"><a href="mapping.html#mapping-modularfiles">5.4. &#26144;&#23556;&#25991;&#20214;&#30340;&#27169;&#22359;&#21270;&#65288;Modular mapping files&#65289;</a></span></dt></dl></dd><dt><span class="chapter"><a href="collections.html">6. &#38598;&#21512;&#31867;(Collections)&#26144;&#23556;</a></span></dt><dd><dl><dt><span class="sect1"><a href="collections.html#collections-persistent">6.1. &#25345;&#20037;&#21270;&#38598;&#21512;&#31867;(Persistent Collections)</a></span></dt><dt><span class="sect1"><a href="collections.html#collections-mapping">6.2. &#26144;&#23556;&#38598;&#21512;&#65288;Mapping a Collection&#65289;</a></span></dt><dt><span class="sect1"><a href="collections.html#collections-ofvalues">6.3. &#20540;&#38598;&#21512;&#21644;&#22810;&#23545;&#22810;&#20851;&#32852;(Collections of Values and Many-To-Many Associations)</a></span></dt><dt><span class="sect1"><a href="collections.html#collections-onetomany">6.4. &#19968;&#23545;&#22810;&#20851;&#32852;&#65288;One-To-Many Associations&#65289;</a></span></dt><dt><span class="sect1"><a href="collections.html#collections-lazy">6.5. &#24310;&#36831;&#21021;&#22987;&#21270;(&#24310;&#36831;&#21152;&#36733;)&#65288;Lazy Initialization&#65289;</a></span></dt><dt><span class="sect1"><a href="collections.html#collections-sorted">6.6. &#38598;&#21512;&#25490;&#24207;&#65288;Sorted Collections&#65289;</a></span></dt><dt><span class="sect1"><a href="collections.html#collections-idbag">6.7. &#20351;&#29992;&lt;idbag&gt;</a></span></dt><dt><span class="sect1"><a href="collections.html#collections-bidirectional">6.8. &#21452;&#21521;&#20851;&#32852;&#65288;Bidirectional Associations&#65289;</a></span></dt><dt><span class="sect1"><a href="collections.html#collections-ternary">6.9. &#19977;&#37325;&#20851;&#32852;&#65288;Ternary Associations&#65289;</a></span></dt><dt><span class="sect1"><a href="collections.html#collections-heterogeneous">6.10. &#24322;&#31867;&#20851;&#32852;(Heterogeneous Associations)</a></span></dt><dt><span class="sect1"><a href="collections.html#collections-example">6.11. &#38598;&#21512;&#20363;&#23376;&#65288;Collection example&#65289;</a></span></dt></dl></dd><dt><span class="chapter"><a href="components.html">7. &#32452;&#20214;&#65288;Component&#65289;&#26144;&#23556;</a></span></dt><dd><dl><dt><span class="sect1"><a href="components.html#components-dependentobjects">7.1. &#20381;&#36182;&#23545;&#35937;&#65288;Dependent objects&#65289;</a></span></dt><dt><span class="sect1"><a href="components.html#components-incollections">7.2. &#22312;&#38598;&#21512;&#20013;&#20986;&#29616;&#30340;&#20381;&#36182;&#23545;&#35937;</a></span></dt><dt><span class="sect1"><a href="components.html#components-asmapindex">7.3. &#32452;&#20214;&#20316;&#20026;Map&#30340;&#32034;&#24341;&#65288;Components as Map indices &#65289;</a></span></dt><dt><span class="sect1"><a href="components.html#components-compositeid">7.4. &#32452;&#20214;&#20316;&#20026;&#32852;&#21512;&#26631;&#35782;&#31526;(Components as composite identifiers)</a></span></dt><dt><span class="sect1"><a href="components.html#components-dynamic">7.5. &#21160;&#24577;&#32452;&#20214; &#65288;Dynamic components&#65289;</a></span></dt></dl></dd><dt><span class="chapter"><a href="inheritance.html">8. &#32487;&#25215;&#26144;&#23556;(Inheritance Mappings)</a></span></dt><dd><dl><dt><span class="sect1"><a href="inheritance.html#inheritance-strategies">8.1. &#19977;&#31181;&#31574;&#30053;</a></span></dt><dt><span class="sect1"><a href="inheritance.html#inheritance-limitations">8.2. &#38480;&#21046;</a></span></dt></dl></dd><dt><span class="chapter"><a href="manipulatingdata.html">9. &#25805;&#20316;&#25345;&#20037;&#21270;&#25968;&#25454;(Manipulating Persistent Data)</a></span></dt><dd><dl><dt><span class="sect1"><a href="manipulatingdata.html#manipulatingdata-creating">9.1. &#21019;&#24314;&#19968;&#20010;&#25345;&#20037;&#21270;&#23545;&#35937;</a></span></dt><dt><span class="sect1"><a href="manipulatingdata.html#manipulatingdata-loading">9.2. &#35013;&#36733;&#23545;&#35937;</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. &#26631;&#37327;&#26597;&#35810;&#65288;Scalar query&#65289;</a></span></dt><dt><span class="sect2"><a href="manipulatingdata.html#manipulatingdata-queryinterface">9.3.2. &#26597;&#35810;&#25509;&#21475;&#65288;Query interface&#65289;</a></span></dt><dt><span class="sect2"><a href="manipulatingdata.html#manipulatingdata-scrolling">9.3.3. &#21487;&#28378;&#21160;&#36845;&#20195;(Scrollable iteration)</a></span></dt><dt><span class="sect2"><a href="manipulatingdata.html#manipulatingdata-filtering">9.3.4. &#36807;&#28388;&#38598;&#21512;&#31867;(Filtering collections)</a></span></dt><dt><span class="sect2"><a href="manipulatingdata.html#manipulatingdata-criteria">9.3.5. &#26465;&#20214;&#26597;&#35810;</a></span></dt><dt><span class="sect2"><a href="manipulatingdata.html#manipulatingdata-nativesql">9.3.6. &#20351;&#29992;&#26412;&#22320;SQL&#30340;&#26597;&#35810;</a></span></dt></dl></dd><dt><span class="sect1"><a href="manipulatingdata.html#manipulatingdata-updating">9.4. &#26356;&#26032;&#23545;&#35937;</a></span></dt><dd><dl><dt><span class="sect2"><a href="manipulatingdata.html#manipulatingdata-updating-insession">9.4.1. &#22312;&#21516;&#19968;Session&#20013;&#26356;&#26032;</a></span></dt><dt><span class="sect2"><a href="manipulatingdata.html#manipulatingdata-updating-detached">9.4.2. &#26356;&#26032;&#20174;session&#33073;&#31163;&#30340;&#23545;&#35937;</a></span></dt><dt><span class="sect2"><a href="manipulatingdata.html#manipulatingdata-update-lock">9.4.3. &#25226;&#19982;Session&#33073;&#31163;&#30340;&#23545;&#35937;&#37325;&#26032;&#32465;&#23450;</a></span></dt></dl></dd><dt><span class="sect1"><a href="manipulatingdata.html#manipulatingdata-deleting">9.5. &#21024;&#38500;&#25345;&#20037;&#21270;&#23545;&#35937;</a></span></dt><dt><span class="sect1"><a href="manipulatingdata.html#manipulatingdata-flushing">9.6. &#21516;&#27493;&#65288;Flush&#65289;</a></span></dt><dt><span class="sect1"><a href="manipulatingdata.html#manipulatingdata-endingsession">9.7. &#32467;&#26463;&#19968;&#20010;Session</a></span></dt><dd><dl><dt><span class="sect2"><a href="manipulatingdata.html#manipulatingdata-endingsession-flushing">9.7.1. &#21516;&#27493;(Flush) Session</a></span></dt><dt><span class="sect2"><a href="manipulatingdata.html#manipulatingdata-endingsession-commit">9.7.2. &#25552;&#20132;&#25968;&#25454;&#24211;&#20107;&#21153;</a></span></dt><dt><span class="sect2"><a href="manipulatingdata.html#manipulatingdata-endingsession-close">9.7.3. &#20851;&#38381;Session</a></span></dt><dt><span class="sect2"><a href="manipulatingdata.html#manipulatingdata-endingsession-exceptions">9.7.4. &#22788;&#29702;&#24322;&#24120;</a></span></dt></dl></dd><dt><span class="sect1"><a href="manipulatingdata.html#manipulatingdata-graphs">9.8. &#29983;&#21629;&#21608;&#26399;&#21644;&#23545;&#35937;&#22270;(Lifecyles and object graphs)</a></span></dt><dt><span class="sect1"><a href="manipulatingdata.html#manipulatingdata-interceptors">9.9. &#25318;&#25130;&#22120;(Interceptors)</a></span></dt><dt><span class="sect1"><a href="manipulatingdata.html#manipulatingdata-metadata">9.10. &#20803;&#25968;&#25454;(Metadata) API</a></span></dt></dl></dd><dt><span class="chapter"><a href="transactions.html">10. &#20107;&#21153;&#21644;&#24182;&#34892;&#65288;Transactions And Concurrency&#65289;</a></span></dt><dd><dl><dt><span class="sect1"><a href="transactions.html#ttransactions-basics">10.1. &#37197;&#32622;&#65292;&#20250;&#35805;&#21644;&#24037;&#21378;&#65288;Configurations, Sessions and Factories&#65289;</a></span></dt><dt><span class="sect1"><a href="transactions.html#transactions-threads">10.2. &#32447;&#31243;&#21644;&#36830;&#25509;&#65288;Threads and connections&#65289;</a></span></dt><dt><span class="sect1"><a href="transactions.html#transactions-identity">10.3. &#32771;&#34385;&#23545;&#35937;&#36776;&#21035;</a></span></dt><dt><span class="sect1"><a href="transactions.html#transactions-optimistic">10.4. &#20048;&#35266;&#24182;&#21457;&#25511;&#21046;&#65288;Optimistic concurrency control&#65289;</a></span></dt><dd><dl><dt><span class="sect2"><a href="transactions.html#transactions-optimistic-longsession">10.4.1. &#20351;&#29992;&#38271;&#29983;&#21629;&#21608;&#26399;&#24102;&#26377;&#33258;&#21160;&#29256;&#26412;&#21270;&#30340;&#20250;&#35805;</a></span></dt><dt><span class="sect2"><a href="transactions.html#transactions-optimistic-detached">10.4.2. &#20351;&#29992;&#24102;&#26377;&#33258;&#21160;&#29256;&#26412;&#21270;&#30340;&#22810;&#20010;&#20250;&#35805;</a></span></dt><dt><span class="sect2"><a href="transactions.html#transactions-optimistic-manual">10.4.3. &#24212;&#29992;&#31243;&#24207;&#33258;&#24049;&#36827;&#34892;&#29256;&#26412;&#26816;&#26597;</a></span></dt></dl></dd><dt><span class="sect1"><a href="transactions.html#transactions-disconnection">10.5. &#20250;&#35805;&#26029;&#24320;&#36830;&#25509;&#65288;Session disconnection&#65289;</a></span></dt><dt><span class="sect1"><a href="transactions.html#transactions-locking">10.6. &#24754;&#35266;&#38145;&#23450;&#65288;Pessimistic Locking&#65289;</a></span></dt></dl></dd><dt><span class="chapter"><a href="queryhql.html">11. Hibernate&#26597;&#35810;&#35821;&#35328;(Query Language), &#21363;HQL</a></span></dt><dd><dl><dt><span class="sect1"><a href="queryhql.html#queryhql-casesensitivity">11.1. &#22823;&#23567;&#20889;&#25935;&#24863;&#24615;(Case Sensitivity)</a></span></dt><dt><span class="sect1"><a href="queryhql.html#queryhql-from">11.2. from &#23376;&#21477;</a></span></dt><dt><span class="sect1"><a href="queryhql.html#queryhql-joins">11.3. &#32852;&#21512;&#65288;Associations&#65289;&#21644;&#36830;&#25509;&#65288;joins&#65289;</a></span></dt><dt><span class="sect1"><a href="queryhql.html#queryhql-select">11.4. select&#23376;&#21477;</a></span></dt><dt><span class="sect1"><a href="queryhql.html#queryhql-aggregation">11.5. &#32479;&#35745;&#20989;&#25968;(Aggregate functions)</a></span></dt><dt><span class="sect1"><a href="queryhql.html#queryhql-polymorphism">11.6. &#22810;&#24577;(polymorphism)&#26597;&#35810;</a></span></dt><dt><span class="sect1"><a href="queryhql.html#queryhql-where">11.7. where&#23376;&#21477;</a></span></dt><dt><span class="sect1"><a href="queryhql.html#queryhql-expressions">11.8. &#34920;&#36798;&#24335;(Expressions)</a></span></dt><dt><span class="sect1"><a href="queryhql.html#queryhql-ordering">11.9. order by &#23376;&#21477;</a></span></dt><dt><span class="sect1"><a href="queryhql.html#queryhql-grouping">11.10. group by &#23376;&#21477;</a></span></dt><dt><span class="sect1"><a href="queryhql.html#queryhql-subqueries">11.11. &#23376;&#26597;&#35810;</a></span></dt><dt><span class="sect1"><a href="queryhql.html#queryhql-examples">11.12. HQL&#31034;&#20363;</a></span></dt><dt><span class="sect1"><a href="queryhql.html#queryhql-tipstricks">11.13. &#25552;&#31034;&#21644;&#25216;&#24039;&#65288;Tips &amp; Tricks&#65289;</a></span></dt></dl></dd><dt><span class="chapter"><a href="querycriteria.html">12. &#26465;&#20214;&#26597;&#35810;(Criteria Query)</a></span></dt><dd><dl><dt><span class="sect1"><a href="querycriteria.html#querycriteria-creating">12.1. &#21019;&#24314;&#19968;&#20010;Criteria&#23454;&#20363;</a></span></dt><dt><span class="sect1"><a href="querycriteria.html#querycriteria-narrowing">12.2. &#32553;&#23567;&#32467;&#26524;&#38598;&#33539;&#22260;</a></span></dt><dt><span class="sect1"><a href="querycriteria.html#querycriteria-ordering">12.3. &#23545;&#32467;&#26524;&#25490;&#24207;</a></span></dt><dt><span class="sect1"><a href="querycriteria.html#querycriteria-associations">12.4. &#20851;&#32852;&#65288;Associations&#65289;</a></span></dt><dt><span class="sect1"><a href="querycriteria.html#querycriteria-dynamicfetching">12.5. &#21160;&#24577;&#20851;&#32852;&#23545;&#35937;&#33719;&#21462;&#65288;Dynamic association fetching&#65289;</a></span></dt><dt><span class="sect1"><a href="querycriteria.html#querycriteria-examples">12.6. &#26681;&#25454;&#31034;&#20363;&#26597;&#35810;&#65288;Example queries&#65289;</a></span></dt></dl></dd><dt><span class="chapter"><a href="querysql.html">13. &#21407;&#29983;SQL&#26597;&#35810;</a></span></dt><dd><dl><dt><span class="sect1"><a href="querysql.html#querysql-creating">13.1. &#21019;&#24314;&#19968;&#20010;&#22522;&#20110;SQL&#30340;Query</a></span></dt><dt><span class="sect1"><a href="querysql.html#querysql-aliasreferences">13.2. &#21035;&#21517;&#21644;&#23646;&#24615;&#24341;&#29992;</a></span></dt><dt><span class="sect1"><a href="querysql.html#querysql-namedqueries">13.3. &#20026;SQL&#26597;&#35810;&#21629;&#21517;</a></span></dt></dl></dd><dt><span class="chapter"><a href="performance.html">14. &#24615;&#33021;&#25552;&#21319;&#65288;Improving performance&#65289;</a></span></dt><dd><dl><dt><span class="sect1"><a href="performance.html#performance-collections">14.1. &#29702;&#35299;&#38598;&#21512;&#30340;&#24615;&#33021;</a></span></dt><dd><dl><dt><span class="sect2"><a href="performance.html#performance-collections-taxonomy">14.1.1. &#20998;&#31867;</a></span></dt><dt><span class="sect2"><a href="performance.html#performance-collections-mostefficientupdate">14.1.2. Lists, maps &#21644;sets&#29992;&#20110;&#26356;&#26032;&#25928;&#29575;&#26368;&#39640;</a></span></dt><dt><span class="sect2"><a href="performance.html#performance-collections-mostefficentinverse">14.1.3. Bag&#21644;list&#26159;&#21453;&#21521;&#38598;&#21512;&#31867;&#20013;&#25928;&#29575;&#26368;&#39640;&#30340;</a></span></dt><dt><span class="sect2"><a href="performance.html#performance-collections-oneshotdelete">14.1.4. &#19968;&#27425;&#24615;&#21024;&#38500;(One shot delete)</a></span></dt></dl></dd><dt><span class="sect1"><a href="performance.html#performance-proxies">14.2. &#29992;&#20110;&#24310;&#36831;&#35013;&#36733;&#30340;&#20195;&#29702;</a></span></dt><dt><span class="sect1"><a href="performance.html#performance-cache">14.3. &#31532;&#20108;&#23618;&#32531;&#23384;(The Second Level Cache)s</a></span></dt><dd><dl><dt><span class="sect2"><a href="performance.html#performance-cache-mapping">14.3.1. &#23545;&#26144;&#23556;(Mapping)&#32531;&#20914;</a></span></dt><dt><span class="sect2"><a href="performance.html#performance-cache-readonly">14.3.2. &#31574;&#30053;&#65306;&#21482;&#35835;&#32531;&#23384;</a></span></dt><dt><span class="sect2"><a href="performance.html#performance-cache-readwrite">14.3.3. &#31574;&#30053;:&#35835;/&#20889;&#32531;&#23384;</a></span></dt><dt><span class="sect2"><a href="performance.html#performance-cache-nonstrict">14.3.4. &#31574;&#30053;:&#19981;&#20005;&#26684;&#30340;&#35835;/&#20889;&#32531;&#23384;</a></span></dt><dt><span class="sect2"><a href="performance.html#performance-cache-transactional">14.3.5. &#31574;&#30053;:&#20107;&#21153;&#32531;&#23384;&#65288;transactional&#65289;</a></span></dt></dl></dd><dt><span class="sect1"><a href="performance.html#performance-sessioncache">14.4. &#31649;&#29702;Session&#32531;&#23384;</a></span></dt><dt><span class="sect1"><a href="performance.html#performance-querycache">14.5. &#26597;&#35810;&#32531;&#23384;(Query Cache)</a></span></dt></dl></dd><dt><span class="chapter"><a href="toolsetguide.html">15. &#24037;&#20855;&#31665;&#25351;&#21335;</a></span></dt><dd><dl><dt><span class="sect1"><a href="toolsetguide.html#toolsetguide-s1">15.1. Schema &#29983;&#25104;&#22120;&#65288;Schema Generation&#65289;</a></span></dt><dd><dl><dt><span class="sect2"><a href="toolsetguide.html#toolsetguide-s1-2">15.1.1. &#23545;schema&#23450;&#21046;&#21270;(Customizing the schema)</a></span></dt><dt><span class="sect2"><a href="toolsetguide.html#toolsetguide-s1-3">15.1.2. &#36816;&#34892;&#35813;&#24037;&#20855;</a></span></dt><dt><span class="sect2"><a href="toolsetguide.html#toolsetguide-s1-4">15.1.3. &#23646;&#24615;(Properties)</a></span></dt><dt><span class="sect2"><a href="toolsetguide.html#toolsetguide-s1-5">15.1.4. &#20351;&#29992;Ant(Using Ant)</a></span></dt><dt><span class="sect2"><a href="toolsetguide.html#toolsetguide-s1-6">15.1.5. &#23545;schema&#30340;&#22686;&#37327;&#26356;&#26032;(Incremental schema updates)</a></span></dt><dt><span class="sect2"><a href="toolsetguide.html#toolsetguide-s1-7">15.1.6. &#29992;Ant&#26469;&#22686;&#37327;&#26356;&#26032;schema(Using Ant for incremental schema updates)</a></span></dt></dl></dd><dt><span class="sect1"><a href="toolsetguide.html#toolsetguide-s2">15.2. &#20195;&#30721;&#29983;&#25104;&#65288;Code Generation&#65289;</a></span></dt><dd><dl><dt><span class="sect2"><a href="toolsetguide.html#toolsetguide-s2-1">15.2.1. &#37197;&#32622;&#25991;&#20214;(&#21487;&#36873;)</a></span></dt><dt><span class="sect2"><a href="toolsetguide.html#toolsetguide-s2-2">15.2.2. meta&#23646;&#24615;</a></span></dt><dt><span class="sect2"><a href="toolsetguide.html#toolsetguide-s2-3">15.2.3. &#22522;&#26412;&#30340;finder&#29983;&#25104;&#22120;&#65288;Basic finder generator&#65289;</a></span></dt><dt><span class="sect2"><a href="toolsetguide.html#toolsetguide-s2-4">15.2.4. &#22522;&#20110;Velocity&#30340;&#28210;&#26579;&#22120;/&#29983;&#25104;&#22120;(Velocity based renderer/generator)</a></span></dt></dl></dd><dt><span class="sect1"><a href="toolsetguide.html#toolsetguide-s3">15.3. &#26144;&#23556;&#25991;&#20214;&#29983;&#25104;&#22120;&#65288;Mapping File Generation&#65289;</a></span></dt><dd><dl><dt><span class="sect2"><a href="toolsetguide.html#toolsetguide-s3-1">15.3.1. &#36816;&#34892;&#27492;&#24037;&#20855;</a></span></dt></dl></dd></dl></dd><dt><span class="chapter"><a href="example-parentchild.html">16. &#31034;&#20363;&#65306;&#29238;&#23376;&#20851;&#31995;(Parent Child Relationships)</a></span></dt><dd><dl><dt><span class="sect1"><a href="example-parentchild.html#example-parentchild-collections">16.1. &#20851;&#20110;collections</a></span></dt><dt><span class="sect1"><a href="example-parentchild.html#example-parentchild-bidir">16.2. &#21452;&#21521;&#30340;&#19968;&#23545;&#22810;&#20851;&#31995;(Bidirectional one-to-many)</a></span></dt><dt><span class="sect1"><a href="example-parentchild.html#example-parentchild-cascades">16.3. &#32423;&#32852;&#29983;&#21629;&#21608;&#26399;&#65288;Cascading lifecycle&#65289;</a></span></dt><dt><span class="sect1"><a href="example-parentchild.html#example-parentchild-update">16.4. &#32423;&#32852;&#26356;&#26032;&#65288;Using cascading update()&#65289;</a></span></dt><dt><span class="sect1"><a href="example-parentchild.html#example-parentchild-conclusion">16.5. &#32467;&#35770;</a></span></dt></dl></dd><dt><span class="chapter"><a href="example-weblog.html">17. &#31034;&#20363;&#65306;Weblog &#24212;&#29992;&#31243;&#24207;</a></span></dt><dd><dl><dt><span class="sect1"><a href="example-weblog.html#example-weblog-classes">17.1. &#25345;&#20037;&#21270;&#31867;</a></span></dt><dt><span class="sect1"><a href="example-weblog.html#example-weblog-mappings">17.2. Hibernate &#26144;&#23556;</a></span></dt><dt><span class="sect1"><a href="example-weblog.html#example-weblog-code">17.3. Hibernate &#20195;&#30721;</a></span></dt></dl></dd><dt><span class="chapter"><a href="example-mappings.html">18. &#31034;&#20363;&#65306;&#19981;&#21516;&#30340;&#26144;&#23556;</a></span></dt><dd><dl><dt><span class="sect1"><a href="example-mappings.html#example-mappings-emp">18.1. &#38599;&#21592;&#65295;&#38599;&#20027;&#65288;Employer/Employee&#65289;</a></span></dt><dt><span class="sect1"><a href="example-mappings.html#example-mappings-authorwork">18.2. &#20316;&#32773;&#65295;&#33879;&#20316;(Author/Work)</a></span></dt><dt><span class="sect1"><a href="example-mappings.html#example-mappings-customerorderproduct">18.3. &#23458;&#25143;&#65295;&#35746;&#21333;&#65295;&#20135;&#21697;(Customer/Order/Product)</a></span></dt></dl></dd><dt><span class="chapter"><a href="best-practices.html">19. &#26368;&#20339;&#23454;&#36341;(Best Practices)</a></span></dt></dl></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left">&nbsp;</td><td width="20%" align="center">&nbsp;</td><td width="40%" align="right">&nbsp;<a accesskey="n" href="preface.html">&#19979;&#19968;&#39029;</a></td></tr><tr><td width="40%" align="left" valign="top">&nbsp;</td><td width="20%" align="center">&nbsp;</td><td width="40%" align="right" valign="top">&nbsp;&#21069;&#35328;</td></tr></table></div></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -