Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

New To Spring and Hibernate

 
Abhi Kumar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • 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
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • 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
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic