# Hibernate Version Migration issue

**URL:** <https://discourse.hibernate.org/t/hibernate-version-migration-issue/2804>\
**Category:** Hibernate ORM\
**Created:** [June 5, 2019, 8:37am UTC](https://discourse.hibernate.org/t/hibernate-version-migration-issue/2804 "2019-06-05T08:37:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Niket\_Shah](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/niket_shah/32/630_2.png) [@Niket\_Shah](https://discourse.hibernate.org/u/Niket_Shah)\
**Post date:** [June 5, 2019, 8:38am UTC](https://discourse.hibernate.org/t/hibernate-version-migration-issue/2804/1 "2019-06-05T08:38:00Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Naros](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/naros/32/19_2.png) [@Naros](https://discourse.hibernate.org/u/Naros)\
**Post date:** [June 5, 2019, 4:55pm UTC](https://discourse.hibernate.org/t/hibernate-version-migration-issue/2804/2 "2019-06-05T16:55:25Z")

</div>

> [@Niket\_Shah](#):
>
> hibernateTemplate

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

---

<div class="post-metadata">

**Author:** ![Niket\_Shah](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/niket_shah/32/630_2.png) [@Niket\_Shah](https://discourse.hibernate.org/u/Niket_Shah)\
**Post date:** [June 6, 2019, 12:46pm UTC](https://discourse.hibernate.org/t/hibernate-version-migration-issue/2804/3 "2019-06-06T12:46:40Z")

</div>

yes you are right  
please help us on
