• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Do HibernateDaoSupport in spring require hibernate jar files for support

 
vipul bondugula
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
James Boswell
Bartender
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will need the Hibernate jar.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic