This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate vs iBatis

 
Prabhu Venkatachalam
Ranch Hand
Posts: 502
Java jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Clinton Begin/Brandon Goodin/Larry Meadors,

What makes you write new framework, which you find difficult to do in hibernate?

Thanks.
 
Brandon Goodin
author
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have been around since Hibernate. So we didn't write iBATIS because we thought we could beat HIbernate. Apart from that iBATIS and Hibernate address different concerns. In a nutshell iBATIS is value based and Hibernate is concerned with object identity. The other distinction is that we are a SQL Mapping framework not a Table to Object mapping tool. We take a different approach to a similar problem.

A couple other points that I think would make iBATIS attractive to developers and companies:
- iBATIS has a small learning curve.
- iBATIS is SQL based and therefore those who prefer to write their SQL will feel very comfortable with it.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"SQL Mapping framework"

Can you explain that a little bit more for us?

Thanks

Mark
 
Tom Henricksen
Author
Ranch Hand
Posts: 144
5
Eclipse IDE jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree that the iBatis learning curve is not as steep as in hibernate. I feel productive in iBatis and I always feel confused in Hibernate. Also iBatis gives you more control of your SQL.
Tom
 
Prabhu Venkatachalam
Ranch Hand
Posts: 502
Java jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Brandon.

Could you explain us what SQL Mapping framework means? as Mark Spritzler asked.
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Brandon Goodin:
- iBATIS is SQL based and therefore those who prefer to write their SQL will feel very comfortable with it.


But isnt ORM framework meant to reduce the SQLs that are written and instead concentrate more on the business objects
 
Clinton Begin
author
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, ORMs are designed to hide or abstract SQL. iBATIS isn't really an ORM in the strict sense.

I talked more about ORM and SQL mapping here

Cheers,
Clinton
 
Prabhu Venkatachalam
Ranch Hand
Posts: 502
Java jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you.
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for that explanation, Clinton. Before reading that, i was under the impression that Hibernate and iBatis were exactly similar.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic