This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Advantage of iBatis over compared to Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Advantage of iBatis over compared to Hibernate" Watch "Advantage of iBatis over compared to Hibernate" New topic

Advantage of iBatis over compared to Hibernate

RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528
"However, let’s suppose data model is not in sync with object model, this is where the model starts breaking down. One size does not fit all. So this is where I like to use iBatis; as the alternative solution, iBatis maps results sets to objects, so no need to care about table structures."

Can anybody please tell me what is the meaning of the above phrase.

Thanks in advance.

If you want something you never had do something which you had never done
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17271

Basically the person is trying to say that changes to the database structure causes you to change your mapping, and your Java classes in something like Hibernate, whereas in iBatis has no mapping of database tables to Java objects, just mapping queries, and therefore a change in the database structure doesn't mean you have to change your mappings.

Now, my take, is that that isn't really an advantage. Because, in most cases database structure changes will mean to me that I still have to go into the mapping and change the queries, and I will most likely still have domain objects that probably will change too.

To me, the biggest advantage iBatis has over Hibernate is that it has a much smaller learning curve and has better stored procedure support.


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

Joined: Jan 30, 2009
Posts: 528

Ya absolutely right , it has a small learning curve and no need to learn a seperate Query Language .

Thanks for your great explanation.
Have you checked out Aspose?
subject: Advantage of iBatis over compared to Hibernate
It's not a secret anymore!