Skip Headers

Specify a Locking Policy

Previous
Previous
 
Next
Next

In this step, we will configure a descriptor with a locking policy to prevent one user overwriting another user's work. TopLink supports multiple types of locking. In this tutorial, we will assign an optimistic locking policy to the Employee descriptor.

For more information, see "Understanding Descriptors and Locking" in Oracle Toplink Developer's Guide.

Show me...

  1. Select the Employee descriptor in the Navigator. The Employee properties page appears in the Editor.

  2. Select the Locking tab.

  3. Select the Optimistic Locking and By Version options. In the Database Field, select EMPLOYEE.VERSION.

  4. Do not select the Store Version in Cache option. The version is stored in version attribute in the Employee descriptor – not the cache.

Locking Tab

Locking tab for Employee descriptor.