Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Muhammad Abdul Arif
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • 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
 
Piyush Mangal
Ranch Hand
Posts: 196
 
Muhammad Abdul Arif
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Thanks mark and piyush.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic