• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Do HibernateDaoSupport in spring require hibernate jar files for support

 
Ranch Hand
Posts: 253
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 1051
5
Hibernate Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You will need the Hibernate jar.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bras cause cancer. And tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic