• 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

New To Spring and Hibernate

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for reading my post
I'm having few questions for you guys, I guess that I'll get few good answers

1) In which scenarios is it preferable to use Spring ?
2) Why is hibernate so preferred when there is IBatis as other ORM tool?

My advance thanks for the answers.
Thanks
 
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
1) If you want decoupled code, you want to use POJOs and you want services added when you want them. (There is a lot more, just wanted to post quickly, sorry)

2) iBatis will map one query to an object. ORM tools like Hibernate has a lot more to it than just mapping. It has object Query language, Fetching strategies, Inheritence mapping, first and second level caches to keep tracki of changes to automatically update them in the database for you, also second level cache to help stop always having to do a trip to the database, so it can speed up your application, and transaction management among many other things above iBatis.

Mark
 
Mark Spritzler
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
"Abhi"

Please click on the My Profile link above and change your display name to meet the JavaRanch Naming Policy of using your real first and real last names.

Thanks

Mark
 
reply
    Bookmark Topic Watch Topic
  • New Topic