File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes what is advantage of hibernate in spring framework? 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 "what is advantage of hibernate in spring framework?" Watch "what is advantage of hibernate in spring framework?" New topic
Author

what is advantage of hibernate in spring framework?

Riyaz Abdul Kareem
Greenhorn

Joined: Apr 23, 2007
Posts: 11
Hi All

Please add your views on hibernate and advantage of using it in spring applications...

Thanks in advance.

Regards,
Riyaz
Nick Williamson
Ranch Hand

Joined: Jan 06, 2007
Posts: 73
Here's one example for you having your dao extend HibernateDaoSupport

...
/*
This will save my bean to the database (everything transactions ect is configured in the spring/hibernate config files.
*/
getHibernateTemplate.save(mybean);
...

For one you can wrap your services with transactions, and not have to code it.

You can inject your dao's right into your services.

There are probably a ton more reasons, but those are just a few off the top of my head.
Riyaz Abdul Kareem
Greenhorn

Joined: Apr 23, 2007
Posts: 11
Hi nick,

Thanks for your response.
could you please suggest any materials with spring + hibernate.

any help will be appreciated.

Thanks,
riyaz
Nick Williamson
Ranch Hand

Joined: Jan 06, 2007
Posts: 73
check out springs documentation on hibernate on their website. It goes through setting it up and good examples.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what is advantage of hibernate in spring framework?
 
Similar Threads
Spring with Hibernate
Aliasing in Spring
Which is the hottest Java Technolgy?
what are the advantage of Hibernate Over Jdbc?
Which one is better between EntityManager and getHibernateTemplate()?