Skip Headers

# Configuring Write Responsibility

Previous

Next

Use `HistoryPolicy` method `setShouldHandleWrites` to specify whether or not TopLink is responsible for writing data to history tables. By default, `setShouldHandleWrites` is set to `true`.

Either the database or TopLink can be responsible for writing data to the history tables.

Typically, the database is responsible for writing data to history tables by way of triggers or stored procedures that customize create, insert, and delete operations to modify both the regular table and the history table appropriately.

Alternatively, you can make TopLink responsible by customizing insert, update, and delete queries using the `DescriptorQueryManager` (see "Configuring Default Query Implementations").