Hi Johannes,
Thanks for your work on this! I'm currently in the process of setting
up hibernate 3 with cocoon 2.1.10 and have been back and forth between the
the tutorials (simple application) at
http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#tutorial-firstapp
and http://wiki.apache.org/cocoon/CocoonAndHibernateTutorial.
I can see that the first part of your re-write merges the setup that
hibernate instructs (use of the hibernate.cfg.xml) and Util class to
manage the session. I haven't gone all the way through the tutorial but I
thought I'd mention that there is an error in the _Installing the filter_
section. the <filter-class>org.test.HibernateFilter</filter-class> should
become
<filter-class>org.apache.cocoon.hibernate.OpenSessionInViewFilter</filter-class>
in the new tutorial (I think).
What is the advantage of using a DAO?
Tricia
On Mon, 28 May 2007, Johannes Textor wrote:
Hello,
following an inspiring discussion with Fabrizio here on the User's list, I
reworked the Cocoon and Hibernate tutorial and the underlying "glue" classes.
The solution is now free of major architectural sins (as far as I can say)
and allows a "clean" implementation of DAOs. No more opening sessions in
flowscript (although you're free to do that if you want to). However, it is
based on 2.1.10, as I'm still lacking the necessary knowledge to see if this
is even necessary in 2.2.
I encourage everyone who uses the approach described in the old version to
check out and test the new one, and bug me or this list with questions,
problems and feedback :)
Cheers,
Johannes
P.S. Fabrizio, I think it should be easy to extend the presented pattern to
your need of "long conversations". Would be nice to have that also ....
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]