This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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


Win a copy of Head First Android this week in the Android forum!
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: 219
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: 1051
    
    5

You will need the Hibernate jar.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17271
    
    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
 
It's not a secret anymore!