aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
Author

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
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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.

Mark


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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Advantage of iBatis over compared to Hibernate
 
Similar Threads
iBatis and Hibernate in same book?
Does Hibernate not quite fit in with the enterprise application?
iBatis in Action: Can I persist my POJOs with it?
Topic : comparing Hibernate with iBatis
Tech Word Game