Date: 2004-11-29T02:19:04
Editor: JohannesTextor <[EMAIL PROTECTED]>
Wiki: Cocoon Wiki
Page: CocoonAndHibernateTutorial
URL: http://wiki.apache.org/cocoon/CocoonAndHibernateTutorial
no comment
Change Log:
------------------------------------------------------------------------------
@@ -8,7 +8,7 @@
If you want to use Hibernate with Cocoon, but you don't know where to start,
this Tutorial will give you some guidelines on how to create Webapps based on
-Hibernate, Flow, an SQL Database, and the Sitemap. This is work in Progress.
+Hibernate, Flow, an SQL Database, and the Sitemap. This is Work in Progress.
So far, it covers the following topics:
* Installing Hibernate
@@ -262,13 +262,19 @@
{{{ Hibernate initialize called }}}
-This means that Hibernate is ready for action, although it does not do
anything so far. Read on for an example
-on how to create a Java Class and store, retrieve or update objects using
Hibernate.
+This means that Hibernate is ready for action. At this point you may start to
deploy your beans and store,
+get and edit them following the instructions on the Yet To Be Written page.
-[To Be Continued]
+However, at some point you will notice that there is still no proper way of
managing Hibernate Sessions.
+Of course you can create and dispose Hibernate Session from Flow Script, but
very probably you will sooner
+or later experience the (in)famous Lazy Initialization Problem (tm). The
solution for this problem is to
+create a servlet filter to manage Hibernate Sessions, so if you are'nt fed up
on Java yet read on :)
+
+= A Servlet Filter for Managing Hibernate Sessions =
+
+== Why ? ==
-=== Test ===
== Appendix ==