1 Reply Latest reply on Jul 28, 2008 3:18 AM by Adam Warski

    Enver and hibernate optimistic locking

    Vimal Kansal Newbie

      I am new to enver, and one thing that is not clear to me is that whether the versions that enver creates are used by Hibernate to implement optimistic locking or for optimistic locking I still have to user hibernate's @Version

      Thanks

      Vimal

        • 1. Re: Enver and hibernate optimistic locking
          Adam Warski Master

          Hello,

          optimistic locking and envers aren't related. You'll still have to use @Version if you want optimistic locking.

          However, what I think might be useful, and what I'll add in the future, is an option to ignore the optimistic-locking-version property when "envers"-versioning data (you normally don't want to remember the history of this property).

          Adam