• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Hibernate or iBatis

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I start to learn Spring, and it has support to Hibernate and iBatis. Who is the best to work? I never see iBatis before. Anybody knows any article that do an comparison? thanks.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by David Feitosa:
Anybody knows any article that do an comparison?



Comparison:
http://c2.com/cgi-bin/wiki?ObjectRelationalToolComparison
 
author
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
They are different and each can be useful, depending on your architecture and/or process.

iBatis is a lightweight mapper, you have full control over all SQL executed (you have to write it yourself) which is very helpful in situations with lots of stored procedures and business logic already existant in the database system. iBatis maps result sets to object graphs and offers some abstraction of the underlying/externalized SQL.

Hibernate is a "full" object/relational mapping tool that is most efficient if used with business logic/domain models in the Java application tier and a normal entity-driven (and hopefully sensible) data model in a SQL database. Hibernate then automates any persistence operations (loading, saving, querying for objects, etc.) for you and offers many interesting optimizations (caching, lazy loading, eager fetching, batch fetching) which are difficult to achieve in a hand-written persistence layer. I'd say it is a bit harder to use Hibernate with very old/broken legacy database schemas but that changes now with Hibernate3, which also offers you to completely hand-craft the SQL that is executed while still giving you many features that make your work easier.
 
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Dave Trussell:


Comparison:
http://c2.com/cgi-bin/wiki?ObjectRelationalToolComparison



Oh.. It's good link.
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

iBatis is a lightweight mapper, you have full control over all SQL executed (you have to write it yourself) which is very helpful in situations with lots of stored procedures and business logic already existant in the database system. iBatis maps result sets to object graphs and offers some abstraction of the underlying/externalized SQL.



iBatis can call store procedure or can create store procedure in mapping file like as Hibernate ??
 
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you have access to the JDBC from iBatis than indeed you will be able to call stored procedures.

As for creating stored procedures from mapping files in Hibernate, I know nothing about this... is it really possible?

./pope
 
author
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, it is possibe in Hibernate3.
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Gavin King:
Yes, it is possibe in Hibernate3.



OK, Ready to Hibernate 3.0 but now it's alpha version...

When Hibernate3 will final release ?
 
Gavin King
author
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We are not completely sure yet, but we will have a beta very soon.
 
Alexandru Popescu
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You never have enough of Hibernate Gavin, ain't you? Me tooooo :-).

./pope
 
There are 10 kinds of people in this world. Those that understand binary get this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic