This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes New To Spring and Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "New To Spring and Hibernate" Watch "New To Spring and Hibernate" New topic
Author

New To Spring and Hibernate

Abhi Kumar
Greenhorn

Joined: Sep 11, 2008
Posts: 24
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

Joined: Feb 05, 2001
Posts: 17249
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

"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
 
 
subject: New To Spring and Hibernate
 
Similar Threads
Classcast exception
Good book for spring and Hibernate
New to Java Spring
Struts/Spring framework inside JBoss portal
Does Spring Framework provide an ORM?