aspose file tools*
The moose likes Spring and the fly likes Do HibernateDaoSupport in spring require hibernate jar files for support Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Do HibernateDaoSupport in spring require hibernate jar files for support" Watch "Do HibernateDaoSupport in spring require hibernate jar files for support" New topic
Author

Do HibernateDaoSupport in spring require hibernate jar files for support

vipul bondugula
Ranch Hand

Joined: Oct 14, 2010
Posts: 218
Hi ,

I am a novice to spring. i am using spring 2.5. Using HibernateDaoSupport. My doubt is, do i still require Hibernate jar files for support of HibernateDaoSupport..

I did a sample example in netbeans. I unchecked the hibernate jar library. The application is still working. Is that correct working with HibernateDaoSupport class without using Hibernate jar files..


Thanks & Regards,
Vipul Kumar


Thanks
Vipul Kumar
James Boswell
Bartender

Joined: Nov 09, 2011
Posts: 1030
    
    5

You will need the Hibernate jar.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

Which version of Hibernate?

If you are using Hibernate 3.1 or higher you should never ever use either HibernateDaoSupport or HibernateTemplate in Spring. There is absolutely no need for it, nor any gain for using it. If you use Hibernate 3.1 or higher your DAO/Repositories should use Hibernate Session and SessionFactory classes directly.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Do HibernateDaoSupport in spring require hibernate jar files for support