• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Migrating from Spring 2.0 and Hibernate 3.0 to Spring 3.1 and Hibernate 4.1

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

We are trying to migrate our application which has Spring 2.0 and Hibernate 3 to Spring 3.1 and Hibernate 4.1. I have copied all the required jar files for both Spring 3.1 and Hibernate 4.1. But when i start the server iam getting below exception



Below is the declaration of productUsersMgr in context file


Transaction Manager declaration


Session Factory declaration
 
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://forum.springsource.org/showthread.php?123976-Hibernate-4-migration might help.
 
Muhammad Abdul Arif
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@Piyush Mangal

So that means hibernateTemplate cannot be used with hibernate4?
 
Piyush Mangal
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes that is what is being suggested by Spring Team. You can also find blog on spring source around the same.
 
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
Yes, since Hibernate 3.1 there is no gain or reason to use the HibernateTemplate. Hibernate removed the old boilerplate code that was needed, and is much cleaner. So no need to use the HibernateTemplate.

Mark
 
Muhammad Abdul Arif
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks mark and piyush.
 
reply
    Bookmark Topic Watch Topic
  • New Topic