aspose file tools*
The moose likes Object Relational Mapping and the fly likes Difference between Hibernate & iBatis ? Which one is good and better choice ! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Difference between Hibernate & iBatis ? Which one is good and better choice !" Watch "Difference between Hibernate & iBatis ? Which one is good and better choice !" New topic
Author

Difference between Hibernate & iBatis ? Which one is good and better choice !

Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 391
Hi ,

Which is better to use and when ?

using Hibernate and iBatis ?

Regards,
prabhat
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60992
    
  65

Yes.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

"Better" is subjective, and depends on your needs, experience, etc.

If you know enough about each framework, which to choose usually becomes obvious. If it isn't, then it may not make any difference, or at least not be based on purely technical reasons.
Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 391
yes you are perfectly right !


If some1 ask in interview then whet we say ?

what i said i only worked on Hibernate so i can't compare them..

regards,
Prabhat
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You answer to the best of your ability.
Pradeep Kumar
Ranch Hand

Joined: Sep 08, 2006
Posts: 108
All ORM tools addresses the same issue. Acting as a bridge between the Objects and the DB. Hibernate is full fledged ORM tool and needs fair amount of learning time. Whereas IBatis can be learned in less time. As per my knowledge IBatis is efficient for queering the DB and Hibernate is used to update the DB.


Thanks and Regards, Pradeep Kumar
SCJP 1.6, SCWCD 5.0
Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 391
good point out by Pradeep.

Nice looking for some more discussion by another member, please share .

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Why do you want more information? So the next time you can answer based on something other than your own experience?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Pradeep Kumar wrote:IBatis is efficient for queering the DB and Hibernate is used to update the DB.

Both are used to perform both tasks--I've never seen a system that uses both Hibernate *and* iBatis--that would be far more trouble than its worth.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

A simplistic "hibernate vs ibatis" web search will return a lot of results.

Be wary of answering questions based on third-party knowledge: a good interviewer won't accept what sounds like a stock, "canned" answer--they'll want to know details, to find out if you're just parroting back information you've read, or if you actually *know*.
Pradeep Kumar
Ranch Hand

Joined: Sep 08, 2006
Posts: 108
Sorry David, a genuine mistake. What I meant was the performance is faster in IBatis for read operations compared to Hibernate.
Pradeep Kumar
Ranch Hand

Joined: Sep 08, 2006
Posts: 108
Yes, google Hibernate Vs IBatis and you can find 1,520,000 results. One good URl that I was able to find for you.

hibernate vs IBatis

Hope this helps you. :-)
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

(Which isn't entirely accurate, because you can define custom queries in Hibernate as well.)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between Hibernate & iBatis ? Which one is good and better choice !