File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Which is better Ibatis or Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Which is better Ibatis or Hibernate" Watch "Which is better Ibatis or Hibernate" New topic
Author

Which is better Ibatis or Hibernate

Pradeep Kumar
Ranch Hand

Joined: Sep 08, 2006
Posts: 108
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


Thanks and Regards, Pradeep Kumar
SCJP 1.6, SCWCD 5.0
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

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.


[Jess in Action][AskingGoodQuestions]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61413
    
  67

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?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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.


GenRocket - Experts at Building Test Data
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9426
    
    2

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.


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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

Joined: Aug 12, 2008
Posts: 8
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

Joined: Feb 05, 2001
Posts: 17257
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Which is better Ibatis or Hibernate