Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Which is better Ibatis or Hibernate

 
Pradeep Kumar
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have just learning Hibernate. So wanted to know which among hibernate and IBatis is better. Or is there any general trend when to use IBatis and when to use Hibernate with respect to their strength and weaknesses.

Thanks and Regards,
Pradeep
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These are not application frameworks but object-relational mapping tools; I'm going to move this to our Object-Relational Mapping forum, where Hbernate and Ibatis are discussed in depth.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64609
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which is better? The one that suits your coding style and project the best.

We cannot tell you that.

Do you have more specific criteria to compare them against?
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hibernate and iBatis are a bit difficult to compare since they are different in what they do. Hibernate is true object relational mapping. iBatis is simpler than that. It simply maps sql back to objects, an SQL mapper if you will. You should read up on what Object Relational Mapping really is and determine if that is what you need. If you are just looking for an easy way to get a ResultMap into a POJO then iBatis might be the way to go.
 
Joe Harry
Ranch Hand
Posts: 10079
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From my colleagues that have worked both on iBatis and Hibernate, I've been told that iBatis is much more better and faster compared to Hibernate and infact is much easier to use than Hibernate.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jothi Shankar Kumar wrote:From my colleagues that have worked both on iBatis and Hibernate, I've been told that iBatis is much more better and faster compared to Hibernate and infact is much easier to use than Hibernate.


You can't just say that, especially when it is hear say, and because they do different things. Though they do solve a somewhat common problem, ORM is much more than SQL Mapping. MUCH MORE.
 
Dhananjay Patkar
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my opinion,iBatis is kind of OQM (Object Query Mapping) ,while hibernate is complete ORM thus both cant be compared
But 1 thing is for sure is iBatis is much more simpler,easy to learn and gives you more freedom in terms of writting complex SQL queries...
Thats what my experience says..

Cheers,
Dhananjay
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yep, everyone will have their opinions. And no one is right or wrong. iBatis and Hibernate are both great fantastic products.

Personally, I prefer Hibernate.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic