# Facing with ObjectOptimisticLocking FailureException after migrating to Hibernate 6.6.2.Final

**URL:** <https://discourse.hibernate.org/t/facing-with-objectoptimisticlocking-failureexception-after-migrating-to-hibernate-6-6-2-final/10725>\
**Category:** Hibernate ORM\
**Created:** [December 3, 2024, 11:23am UTC](https://discourse.hibernate.org/t/facing-with-objectoptimisticlocking-failureexception-after-migrating-to-hibernate-6-6-2-final/10725 "2024-12-03T11:23:29Z")\
**Posts on this page:** 1\
**Showing post:** 27

<div class="post-metadata">

**Author:** ![beikov](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/beikov/32/258_2.png) [@beikov](https://discourse.hibernate.org/u/beikov)\
**Post date:** [August 12, 2025, 7:47am UTC](https://discourse.hibernate.org/t/facing-with-objectoptimisticlocking-failureexception-after-migrating-to-hibernate-6-6-2-final/10725/27 "2025-08-12T07:47:26Z")

</div>

Yeah, so this was discussed multiple times here already and is mentioned in the migration guide: [hibernate-orm/migration-guide.adoc at 6.6 · hibernate/hibernate-orm · GitHub](https://github.com/hibernate/hibernate-orm/blob/6.6/migration-guide.adoc#merge-versioned-entity-when-row-is-deleted)

- [OptimisticLockException when manually setting the ID for the entity](https://discourse.hibernate.org/t/optimisticlockexception-when-manually-setting-the-id-for-the-entity/10975)
- [Facing with ObjectOptimisticLocking FailureException after migrating to Hibernate 6.6.2.Final](https://discourse.hibernate.org/t/facing-with-objectoptimisticlocking-failureexception-after-migrating-to-hibernate-6-6-2-final/10725)
- [Merge, migration and oprimistic lock](https://discourse.hibernate.org/t/merge-migration-and-oprimistic-lock/10629)

---

_[View the full topic](https://discourse.hibernate.org/t/facing-with-objectoptimisticlocking-failureexception-after-migrating-to-hibernate-6-6-2-final/10725)._
