You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by struts Dude <sc...@slingshot.co.nz> on 2004/09/01 22:36:31 UTC
Hibernate VS ibatis, which is better?
Hello
Just want some feedback from ppl who know
both. Which one is more powerful and easier
to use?
Personally I only know iBatis but seeing so
many web app built on hibernate and even
a book on hibernate to be published, just
wandering if it's worth my time to learn hibernate.
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Hibernate VS ibatis, which is better?
Posted by Rick Reumann <st...@reumann.net>.
struts Dude wrote:
> Just want some feedback from ppl who know
> both. Which one is more powerful and easier
> to use?
Join us on #FunkyCodeMonkey on irc.darkmyst.org. Several people there
have used both. I'm sure they'd love to share their experiences. Most
seem to prefer iBATIS.
--
Rick
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Hibernate VS ibatis, which is better?
Posted by Langdon Stevenson <ls...@objectpositive.com>.
<snip>
>As it stands today, a team has three major choices in data access libraries:
>
> 1. Roll your own persistence layer using the stock data access libraries (JDBC)
>
> 2. Use an Object-Relational-Modeling (ORM) Tool, like Hibernate or Apache OJB or Sun's JDO
>
> 3. Use a Data Mapper framework, like iBATIS
<snip>
Nice summary thanks Ted.
I chose to go with Hibernate for my project (which fits the ORM category above perfectly) and am very happy with it so far. Relatively short learning curve (even for a Java/Struts newbie like me). After slugging it out with log4j, and the Struts validator, it was a piece of cake to implement.
I am only doing simple stuff with it at the moment, but have no complaints (just wish that it had been around 8 years ago!).
Langdon
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Hibernate VS ibatis, which is better?
Posted by Vic <vi...@portalvu.com>.
So now, iBatis is part of Apache:
http://www.mail-archive.com/general%40incubator.apache.org/msg03576.html
It has a very nice PetStore (that uses Struts of course)
.V
David Durham wrote:
> Way to shut down a perfectly good thread, Ted. ;-) BTW, I read your
> book. When's the book covering 2.0 due?
>
>
> Ted Husted wrote:
>
>> On Thu, 02 Sep 2004 10:45:03 +1200, struts Dude wrote:
>>
>>
>>> Seeing so many support for either side,
>>> I might as well flip a coin to decide
>>> whether or not to learn hibernate.
>>>
>>
>>
>> As a technologies, both are easy-to-use and powerful. The difference
>> is that they use different paradigms.
>> As it stands today, a team has three major choices in data access
>> libraries:
>>
>> 1. Roll your own persistence layer using the stock data access
>> libraries (JDBC)
>> 2. Use an Object-Relational-Modeling (ORM) Tool, like Hibernate or
>> Apache OJB or Sun's JDO
>>
>> 3. Use a Data Mapper framework, like iBATIS
>>
>> Rolling your own with the stock libraries are a good choice for small
>> applications with stable requirements. (If you're lucky enough to have
>> one of those!)
>>
>> ORM tools (like Hibernate) are a good choice when:
>>
>> 1. Have complete control over your database implementation
>>
>> 2. Do not have a Database Adminisrator or SQL guru on the team
>>
>> 3. Want to model the problem domain outside the database as an object
>> graph
>>
>> A Data Mapper (like iBATIS) is a good choice when:
>>
>> 1. You do not have complete control over the database implementation,
>> or want to continue to access a legacy database as it is being refactored
>>
>> 2. You have database administrators or SQL gurus on the team
>>
>> 3. The database is already being used to model the problem domain, and
>> the application's primary role is help the client use the existing
>> database model.
>>
>> In practice, it has less to do with iBATIS or Hibernate, and more to
>> do with what you're hooking up with :)
>>
>> HTH, Ted.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>
>>
--
Please post on Rich Internet Applications User Interface (RiA/SoA)
<http://www.portalvu.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Hibernate VS ibatis, which is better?
Posted by David Durham <da...@scott.af.mil>.
Ted Husted wrote:
> On Thu, 02 Sep 2004 10:33:44 -0500, David Durham wrote:
>
>> Way to shut down a perfectly good thread, Ted. -) BTW, I read
>> your book. When's the book covering 2.0 due?
>
> 2.0 of what? :)
Yeah, I guess it's too early to say.
Someone could come along with a very comprehensive (1000 pages in small
font ought to do it) book on Struts, the different Tag libs, and
different Modeling frameworks. I think It would be a boon to a lot of
people.
> An early release is available at the iBATIS.NET site.
> <http://sourceforge.net/project/showfiles.php?group_id=109704>
A co-worker of mine is getting started on a .NET app. I'll pass this along.
Thanks.
- Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Hibernate VS ibatis, which is better?
Posted by Ted Husted <hu...@apache.org>.
On Thu, 02 Sep 2004 10:33:44 -0500, David Durham wrote:
> Way to shut down a perfectly good thread, Ted. -) BTW, I read
> your book. When's the book covering 2.0 due?
2.0 of what? :)
As it stands, my only plan is to work on open-source documents. Lately, I've been working on an update of Clinton's (very excellent) iBATIS Developer's Guide.
An early release is available at the iBATIS.NET site. <http://sourceforge.net/project/showfiles.php?group_id=109704>
I added the summary from this thread to the working copy, but haven't posted it yet.
-T.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Hibernate VS ibatis, which is better?
Posted by David Durham <da...@scott.af.mil>.
Way to shut down a perfectly good thread, Ted. ;-) BTW, I read your
book. When's the book covering 2.0 due?
Ted Husted wrote:
>On Thu, 02 Sep 2004 10:45:03 +1200, struts Dude wrote:
>
>
>> Seeing so many support for either side,
>> I might as well flip a coin to decide
>> whether or not to learn hibernate.
>>
>>
>
>As a technologies, both are easy-to-use and powerful. The difference is that they use different paradigms.
>
>As it stands today, a team has three major choices in data access libraries:
>
> 1. Roll your own persistence layer using the stock data access libraries (JDBC)
>
> 2. Use an Object-Relational-Modeling (ORM) Tool, like Hibernate or Apache OJB or Sun's JDO
>
> 3. Use a Data Mapper framework, like iBATIS
>
>Rolling your own with the stock libraries are a good choice for small applications with stable requirements. (If you're lucky enough to have one of those!)
>
>ORM tools (like Hibernate) are a good choice when:
>
> 1. Have complete control over your database implementation
>
> 2. Do not have a Database Adminisrator or SQL guru on the team
>
> 3. Want to model the problem domain outside the database as an object graph
>
>A Data Mapper (like iBATIS) is a good choice when:
>
> 1. You do not have complete control over the database implementation, or want to continue to access a legacy database as it is being refactored
>
> 2. You have database administrators or SQL gurus on the team
>
> 3. The database is already being used to model the problem domain, and the application's primary role is help the client use the existing database model.
>
>In practice, it has less to do with iBATIS or Hibernate, and more to do with what you're hooking up with :)
>
>HTH, Ted.
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Hibernate VS ibatis, which is better?
Posted by Ted Husted <hu...@apache.org>.
On Thu, 02 Sep 2004 10:45:03 +1200, struts Dude wrote:
> Seeing so many support for either side,
> I might as well flip a coin to decide
> whether or not to learn hibernate.
As a technologies, both are easy-to-use and powerful. The difference is that they use different paradigms.
As it stands today, a team has three major choices in data access libraries:
1. Roll your own persistence layer using the stock data access libraries (JDBC)
2. Use an Object-Relational-Modeling (ORM) Tool, like Hibernate or Apache OJB or Sun's JDO
3. Use a Data Mapper framework, like iBATIS
Rolling your own with the stock libraries are a good choice for small applications with stable requirements. (If you're lucky enough to have one of those!)
ORM tools (like Hibernate) are a good choice when:
1. Have complete control over your database implementation
2. Do not have a Database Adminisrator or SQL guru on the team
3. Want to model the problem domain outside the database as an object graph
A Data Mapper (like iBATIS) is a good choice when:
1. You do not have complete control over the database implementation, or want to continue to access a legacy database as it is being refactored
2. You have database administrators or SQL gurus on the team
3. The database is already being used to model the problem domain, and the application's primary role is help the client use the existing database model.
In practice, it has less to do with iBATIS or Hibernate, and more to do with what you're hooking up with :)
HTH, Ted.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Hibernate VS ibatis, which is better?
Posted by struts Dude <sc...@slingshot.co.nz>.
Thanks guys.
Seeing so many support for either side,
I might as well flip a coin to decide
whether or not to learn hibernate.
;)
----- Original Message -----
From: "struts Dude" <sc...@slingshot.co.nz>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Thursday, September 02, 2004 8:36 AM
Subject: Hibernate VS ibatis, which is better?
> Hello
>
> Just want some feedback from ppl who know
> both. Which one is more powerful and easier
> to use?
>
> Personally I only know iBatis but seeing so
> many web app built on hibernate and even
> a book on hibernate to be published, just
> wandering if it's worth my time to learn hibernate.
>
> Thanks
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org