Am trying to implement Optimistic lock in our Applications and gave @Version JPA

Am trying to implement Optimistic lock in our Applications and gave @Version JPA Anotations to the version_id integer field in a CDT. CDT has many parent to child relationship. Value of the version_id is not incremented even after writing the particular transaction to DB2. Could you please let us know whether we need to define the column in DB2 as Auto Increment to make it work or it should work even without that. Thanks in advance.

OriginalPostID-176763

OriginalPostID-176763

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data