Skip Headers

# Validating a Unit of Work

Previous

Next

The unit of work validates object references at commit time. If an object registered in a unit of work references other unregistered objects, this violates object transaction isolation, and causes TopLink validation to raise an exception.

Although referencing unregistered objects from a registered object can corrupt the session cache, there are applications in which you want to disable validation. TopLink offers the following APIs to toggle validation:

- `dontPerformValidation`: disables validation

- `performFullValidation`: enables validation