# Optimistic-lock="version"

**URL:** <https://discourse.hibernate.org/t/optimistic-lock-version/4130>\
**Category:** Hibernate ORM\
**Created:** [May 7, 2020, 10:36am UTC](https://discourse.hibernate.org/t/optimistic-lock-version/4130 "2020-05-07T10:36:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![000sam](https://avatars.discourse-cdn.com/v4/letter/0/e274bd/32.png) [@000sam](https://discourse.hibernate.org/u/000sam)\
**Post date:** [May 7, 2020, 10:36am UTC](https://discourse.hibernate.org/t/optimistic-lock-version/4130/1 "2020-05-07T10:36:34Z")

</div>

HI Team,

using optimistic-lock=“version” property we are getting DBException and when we changed to optimistic-lock="all " solve this error but it increased operation consumed times. any idea how to proceed on this.

any suggestion and help will be highly appreciated on how to proceed further on this.
