forked from jerrypnz/moonranger.github.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhibernate.html
96 lines (88 loc) · 4.27 KB
/
hibernate.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="Stylesheet" type="text/css" href="css/style.css" />
<title>Jerry的个人维基</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<div id="navbar">
<ul>
<li> <a href="http://jerrypeng.me">Blog</a> </li>
<li> <a class="activated" href="index.html">WIKI</a> </li>
<li> <a href="https://github.com/moonranger">Github</a> </li>
<li> <a href="about.html">About</a> </li>
<li class="search">
<form action="http://www.google.com/search" method="get">
<input name="sitesearch" value="http://wiki.jerrypeng.me/" type="hidden" />
<input name="hl" value="zh-CN" type="hidden" />
<input name="ie" value="UTF-8" type="hidden" />
<input size="25" name="q" id="query" value="Search..." type="text"
onfocus="if( this.value=='Search...') {this.value='' };"
onblur="if( this.value=='') {this.value='Search...' };" />
</form>
</li>
</ul>
</div>
<div id="content">
<h1 id="toc_1"> Hibernate</h1>
<div class="toc">
<ul>
<li><a href="#toc_1"> Hibernate</a></li>
<ul>
<li><a href="#toc_1.1">1. Session管理</a></li>
<li><a href="#toc_1.2">2. Traps and Pitfalls</a></li>
</ul>
</ul>
</div>
<h2 id="toc_1.1">1. Session管理</h2>
<p>
Session是JDBC Connection之上的包装,所以Session的生命周期通常应该和Connection一样,
</p>
<h2 id="toc_1.2">2. Traps and Pitfalls</h2>
<ul>
<li>
Criteria查询,关联对象如果没有
</li>
</ul>
</div>
<!--
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'moonranger'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
-->
</body>
<script type="text/javascript" src="scripts/shCore.js"></script>
<script type="text/javascript" src="scripts/shBrushJScript.js"></script>
<script type="text/javascript" src="scripts/shBrushBash.js"></script>
<script type="text/javascript" src="scripts/shBrushCpp.js"></script>
<script type="text/javascript" src="scripts/shBrushCSharp.js"></script>
<script type="text/javascript" src="scripts/shBrushCss.js"></script>
<script type="text/javascript" src="scripts/shBrushDiff.js"></script>
<script type="text/javascript" src="scripts/shBrushErlang.js"></script>
<script type="text/javascript" src="scripts/shBrushGroovy.js"></script>
<script type="text/javascript" src="scripts/shBrushJava.js"></script>
<script type="text/javascript" src="scripts/shBrushJScript.js"></script>
<script type="text/javascript" src="scripts/shBrushPerl.js"></script>
<script type="text/javascript" src="scripts/shBrushPhp.js"></script>
<script type="text/javascript" src="scripts/shBrushPlain.js"></script>
<script type="text/javascript" src="scripts/shBrushPython.js"></script>
<script type="text/javascript" src="scripts/shBrushRuby.js"></script>
<script type="text/javascript" src="scripts/shBrushScala.js"></script>
<script type="text/javascript" src="scripts/shBrushSql.js"></script>
<script type="text/javascript" src="scripts/shBrushXml.js"></script>
<script type="text/javascript" src="scripts/shBrushClojure.js"></script>
<link type="text/css" rel="stylesheet" href="styles/shCoreDefault.css"/>
<link type="text/css" rel="stylesheet" href="styles/shThemeRDark.css"/>
<script type="text/javascript">SyntaxHighlighter.all();</script>
</html>