Hey Andreas,
On 20/02/2006, at 11:48 PM, Andreas Bulling wrote:
Hi Nick,
thanks for your answer!
No prob.s.
Yesterday I thought I could finally decide which combination of
frameworks
I should use/which combination is the best (perhaps at least for me)
but you're right: I also thought why to use another framework (Spring)
if Hivemind seems to be a replacement and is already needed by
tapestry...
I didn't (and still don't) know how they differ but if you say that
you don't miss a thing...
I have only just set up my configuration and have no experience with
it. I'll be watching it as the project goes on.
Well, I think perhaps I will change my decision another time.
If you are confused, do what is the simplest and fastest solution? If
it's simple and fast it is at least not hard to remove and replace
with something else, later on. If you don't need to replace it you've
solved a problem efficiently! Well ... that's my current theory,
anyhow. :)
Would you mind provide some sample code (especially the setup and
different xml files)? That would be great!
I've only really followed the examples at http://
hivetranse.sourceforge.net/quickstart.html#start.config.hibernate .
I'm happy to share my experiences with that configuration or share
any new pieces of code which spring to light.
I'll post what I have through tomorrow. It's midnight here now.
All the best,
Nick
Sincerly,
Andreas
On 20. Feb 2006 - 23:38:32, Nick Faiz wrote:
| 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
---------------------------------------------------------------------
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]