|
From: <one...@us...> - 2002-11-26 10:25:27
|
Update of /cvsroot/hibernate/Hibernate/doc
In directory sc8-pr-cvs1:/tmp/cvs-serv19745
Modified Files:
faq.aft faq.html menu.html
Added Files:
documentation.html
Log Message:
got downloadable doco working again
--- NEW FILE: documentation.html ---
<link rel="stylesheet" href="hibernate.css" type="text/css"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
<meta name="author" content="">
<meta name="GENERATOR" content = "Almost Free Text v5.0792; Copyright 1996-2002 Todd Coram. All rights reserved.">
<style type="text/css">
<!--
.Default {background-color: rgb(255,255,255); color: rgb(0,0,0); font-family: 'Tahoma'; font-size: 12pt}
.Text-Background {background-color: rgb(255,255,255)}
-->
</style>
</head>
<body>
<h3><a name="Introduction">Reference Documentation</a></h3>
<p class="Body">
The reference documentation is available as
<ul>
<li><a href="reference/html/index.html">Online HTML version</a>
<li><a href="reference/html_single/index.html">Single Page HTML version</a> (230 kb)
<li><a href="reference/pdf/hibernate_reference.pdf">PDF Print version</a> (670 kb)
</ul>
</p>
</body>
</html>
Index: faq.aft
===================================================================
RCS file: /cvsroot/hibernate/Hibernate/doc/faq.aft,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** faq.aft 14 Nov 2002 12:57:37 -0000 1.29
--- faq.aft 26 Nov 2002 10:25:24 -0000 1.30
***************
*** 187,196 ****
Bar bar = new Bar();
Foo foo = new Foo();
sess.save(bar);
sess.save(foo);
! You can't just save |foo| and let |bar| be saved by cascade, because |bar|'s identifier will be generated too late.
! This approach saves you from the following alternative idiom:
Bar bar = new Bar();
--- 187,202 ----
Bar bar = new Bar();
Foo foo = new Foo();
+ foo.setBar(bar);
sess.save(bar);
sess.save(foo);
! You can't just save |foo| and let |bar| be saved by cascade, because |bar|'s identifier will be generated too late. ie. you can't use
! Bar bar = new Bar();
! Foo foo = new Foo();
! foo.setBar(bar);
! sess.save(foo); //ERROR!
!
! The approach above spares you the following alternative idiom:
Bar bar = new Bar();
Index: faq.html
===================================================================
RCS file: /cvsroot/hibernate/Hibernate/doc/faq.html,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -d -r1.42 -r1.43
*** faq.html 14 Nov 2002 12:57:37 -0000 1.42
--- faq.html 26 Nov 2002 10:25:24 -0000 1.43
***************
*** 320,331 ****
Bar bar = new Bar();
Foo foo = new Foo();
sess.save(bar);
sess.save(foo);
</pre>
<p class="Body">
! You can't just save <tt>foo</tt> and let <tt>bar</tt> be saved by cascade, because <tt>bar</tt>'s identifier will be generated too late.
</p>
<p class="Body">
! This approach saves you from the following alternative idiom:
<pre>
--- 320,338 ----
Bar bar = new Bar();
Foo foo = new Foo();
+ foo.setBar(bar);
sess.save(bar);
sess.save(foo);
</pre>
<p class="Body">
! You can't just save <tt>foo</tt> and let <tt>bar</tt> be saved by cascade, because <tt>bar</tt>'s identifier will be generated too late. ie. you can't use
</p>
+ <pre>
+ Bar bar = new Bar();
+ Foo foo = new Foo();
+ foo.setBar(bar);
+ sess.save(foo); //ERROR!
+ </pre>
<p class="Body">
! The approach above spares you the following alternative idiom:
<pre>
Index: menu.html
===================================================================
RCS file: /cvsroot/hibernate/Hibernate/doc/menu.html,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** menu.html 5 Nov 2002 08:04:02 -0000 1.8
--- menu.html 26 Nov 2002 10:25:24 -0000 1.9
***************
*** 14,18 ****
</a> <a href="hibernate.html" target="mainFrame">Introduction</a><br>
<a href="features.html" target="mainFrame">Feature List</a><br>
! <a href="reference/index.html" target="mainFrame">Documentation</a><br>
<a href="faq.html" target="mainFrame">Hibernate FAQ</a><br>
<a href="best.html" target="mainFrame">Best Practices</a><br>
--- 14,18 ----
</a> <a href="hibernate.html" target="mainFrame">Introduction</a><br>
<a href="features.html" target="mainFrame">Feature List</a><br>
! <a href="documentation.html" target="mainFrame">Documentation</a><br>
<a href="faq.html" target="mainFrame">Hibernate FAQ</a><br>
<a href="best.html" target="mainFrame">Best Practices</a><br>
|