All versions: 3.11 | 3.10 | 3.9 | 3.8 | 3.7 | Development versions: 3.12 | Unsupported versions: 3.6 | 3.5 | 3.4 | 3.3 | 3.2

The executeWithOptimisticLocking setting governs the behaviour of the jOOQ optimistic locking feature:

Programmatic configuration

Settings settings = new Settings()
    .withExecuteWithOptimisticLocking(true); // Defaults to false

XML configuration

<settings xmlns="http://www.jooq.org/xsd/jooq-runtime-3.3.0.xsd">
  <executeWithOptimisticLocking>true</executeWithOptimisticLocking>
</settings>

For more details, please refer to the manual's section about the optimistic locking feature.

The jOOQ Logo