This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Hibernate vs iBatis Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate vs iBatis" Watch "Hibernate vs iBatis" New topic
Author

Hibernate vs iBatis

Prabhu Venkatachalam
Ranch Hand

Joined: Nov 16, 2005
Posts: 502

Clinton Begin/Brandon Goodin/Larry Meadors,

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

Thanks.


Prabhu Venkatachalam<br />SCJP 1.4,SCWCD 1.4<br />prabhu.venkatachalam@gmail.com
Brandon Goodin
author
Greenhorn

Joined: Nov 08, 2006
Posts: 14
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.


Brandon Goodin<br />Independent Consultant<br /><a href="http://www.silvermindsoftware.com" target="_blank" rel="nofollow">http://www.silvermindsoftware.com</a>
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

"SQL Mapping framework"

Can you explain that a little bit more for us?

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Tom Henricksen
Ranch Hand

Joined: Mar 23, 2004
Posts: 136

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

Joined: Nov 16, 2005
Posts: 502

Thanks Brandon.

Could you explain us what SQL Mapping framework means? as Mark Spritzler asked.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10141
    
165

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


[My Blog] [JavaRanch Journal]
Clinton Begin
author
Greenhorn

Joined: Nov 08, 2006
Posts: 21
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

Joined: Nov 16, 2005
Posts: 502

Thank you.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10141
    
165

Thanks for that explanation, Clinton. Before reading that, i was under the impression that Hibernate and iBatis were exactly similar.
 
GeeCON Prague 2014
 
subject: Hibernate vs iBatis