Andreas,
Thanks for your response.
On 20/02/2006, at 11:19 PM, Andreas Bulling wrote:
unfortunately I can't tell you any experiences but one question comes
to my mind: Do the HiveUtils offer something similar to the
HibernateTemplates
in Spring?
No, but I've never really relied on Hibernate templates except as a
convenience. I think you're referring to DAOs extending the
HibernateDaoSupport class, which supports getTemplate().saveOrUpdate
(foo) or something like that?
Right now, our DAOs are just injecting the session from the Hive and
using it directly, according to the open session in view pattern[1].
I could write a convenience super-class, like HibernateDaoSupport, if
one doesnt exist, if I run into the need for it.
That was the main reason for me to use Spring but perhaps
Hivemind is even better (because you don't have the Spring dependancy
anymore as hivemind is needed for tapestry anyway)?
Hrm ... I'm probably missing the compelling reason to use the Spring
idea of Hibernate templates. The best I like most is the declarative
transactions in the config. - both frameworks support that for
Hibernate. On the other hand, my first instinct would be to avoid the
complexity of having Spring *and* Hivemind *and* Tapestry.
I've only just begun learning it but Hivemind has been able to do
everything I've wanted from IoC so far; albeit the configuration is
very verbose compared to Spring's.
Cheers,
Nick
[1] - http://hibernate.org/43.html
Sincerly,
Andreas
On 20. Feb 2006 - 23:07:23, Nick Faiz wrote:
| I know that this post is about Tapestry, Hibernate, and Spring but I
| wanted to query readers about Tapestry, Hibernate, and Hivemind.
I've
| only just set up Hivemind with Hibernate, using the HiveUtils.
|
| I've used the 'Open Session in View' pattern, with a Spring and
| Hibernate combination, before. The HiveUtils/HiveTranse offering
| seems fairly close to it and the doc.s have an example
configuration:
|
| http://hivetranse.sourceforge.net/
quickstart.html#start.config.hibernate
|
| Doing so has allowed me to inject a session object into my DAOs. It
| seems fairly elegant and close to what I have used with Spring and
| Hibernate, anyhow.
|
| Has anyone had any particular experience using this configuration?
|
| Cheers,
| Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Nick Faiz,
Developer
www.q9software.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]