• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Advantage of iBatis over compared to Hibernate

 
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"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.

 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


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

Thanks for your great explanation.
 
reply
    Bookmark Topic Watch Topic
  • New Topic