Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Prabhat Ranjan
Ranch Hand
Posts: 397
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

Which is better to use and when ?

using Hibernate and iBatis ?

Regards,
prabhat
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64967
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
Posts: 397
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You answer to the best of your ability.
 
Pradeep Kumar
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Prabhat Ranjan
Ranch Hand
Posts: 397
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
good point out by Pradeep.

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

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(Which isn't entirely accurate, because you can define custom queries in Hibernate as well.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic