Hi Jorge,
At the time I was playing with Torque/Turbine/Velocity Torque ( > 12 months ago)
Torque was going through lots of changes. Part of these changes was being de-coupled
from Turbine. I admit i never got it working properly - I got sick of trying to get it
to build and getting errors, so I gave it a miss.
Feature-wise, at the time its implementations of O/R mapping seemed a bit clunky and
still required too much hand coding. That was 12 months ago so it's likely to have
evolved.
If I can comment further - Velocity is a topnoth product and does what it advertises
very well. It helps the maintainer Geir Magnusson Jnr is a really nice guy.
I came away from Turbine with mixed feelings.
With Turbine you pick and choose the services you need.
It promises a lot but, and has a lot, but at the end of the day you still have to do
all the 'plumbing' of these services together yourself. I found this painful hence my
search for an alternative.
Now, regarding Hibernate. Even before I got into Hibernate I checked out Castor and
ObjectBridge. The things that attracted me to Hibernate is that i didn't need 20 xml
config files just to do simple stuff. I'm not using EJB, I'm not balancing load, I'm
not doing any far-out stuff. All I want to do is be able to model my relationships
between objects and have them stored in the DB. That's IT. Hibernate does this with
minimum Guff and maximum flexibility.
With Hibernate, I model my relationships in XML, and they can be rather complex ER
models (between classes) and I have not had to do any 'special' hand coding to make it
work. That's a credit to the beauty of Hibernate.
As an example, if I have 1 to many reln between Person and Accounts.
I can then setup the mapping file so that when I retrieve Person P all the Accounts
objects are retreived also as a List or Map (depending up how what you want) as
property of object P.
ie, something like this:
================
Person P = new Person();
sess.load( Person.class, new Long(10) ); // Get person with ID 10.
//Assuming Accounts are retreived into list
Iterator it = P.AccountList.iterator(); // get handle to list
while(it.hasNext() )
{
Account acc = (Account)it.next();
Log.info("Account #: " + acc.Number);
Log.info("Balance #: " + acc.balance);
}
===========================
I'm going from memory, so excuse syntax errors, but I hope you can see the power of
it. In another small project I worked on I had
three levels of 1 to many relationship, so with one query I pulled back data from
three tables all contained in one object! Very powerful. Model your ER mappings as YOU
want them truly mapped, ie lists, hashmaps, sets, whatever ,and then Hibernate will
let you use it in that fashion.
Basically, you don't need to contort your model to fit the tool is what i'm saying.
Hope that's gone a little way to answering your question. It's almost impossible for
me to be objective as I _haven't_ tried all OR mapping tools, just had pleasant
experience with Hibernate.
REgards,
Patrick.
> may you expand on your commentaries about torque?
> I am evaluatin th use of jakarta JOB vs Jakarta.Turbine Torque [2,3],
> hibernate and cayene.
> We used to support WebGain excellent product toplink, but now it belongs to
> Oracle and some customers dont want to use a vendor product (even if they
> already have them)
>
> regards,
> Jorge DeFlon
>
> ----- Original Message -----
> From: "Patrick Saunders" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, October 10, 2002 12:03 AM
> Subject: [Tapestry-developer] Anyone tried Hibernate ?
>
>
> > Hi guys,
> > I saw with interest the comments about people using Cayenne as persistence
> mechanism.
> >
> > Now, I haven't had any experience with Cayenne though I am currently using
> Hibernate and am a huge fan of it. I know there is at least one other person
> on this forum has used it (cheers Saqib.) and has had favourable results.
> >
> > To give a little perspective, I tried Turbine/Velocity/Torque many months
> ago and didn't really enjoy and experience.
> > Hibernate doesn't promise the world, though for what it does do, it does
> it with style.
> >
> > The website I am building is using Tapestry/Hibernate/PostgreSQL with full
> text searching.
> >
> > I am at work so I can't provide examples of my code though if people are
> are interested I am more than happy to share.
> >
> > Hibernate can be found here: http://hibernate.sourceforge.net/
> >
> > Pat.
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Tapestry-developer mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/tapestry-developer
> >
> >
>
>
>
<--------- cut along this line ----------->
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer