Hibernate Version Migration issue

We are migrating Hibernate 3 to hibernate 4. we make few changes listed below.

  1. replace Import
  2. Replaice EexecuteFind methods with execute.

in our application we are using hibernateTemplate. for 3.x it was working properly but for 4.2 it is throwing error related to null constrain violation.

can any one help on this.

I believe that is technically part of Spring Framework, right?

yes you are right
please help us on