Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Developer's Guide

- Previous: check-modified-at-commit
- Next: checkpoint-at-end-of-method

## check-version-of-accessed-instances

Checks the version column of the modified beans.

Version consistency allows the bean state to be cached between transactions instead of read from a database. The bean state is verified by primary key and version column values. This occurs during a custom query (for dirty instances only) or commit (for both clean and dirty instances).

The version column must be a numeric type, and must be in the primary table. You must provide appropriate update triggers for this column.

### Superelements

consistency (`sun-cmp-mappings.xml`)

### Subelements

The following table describes subelements for the `check-version-of-accessed-instances` element.

Table A–18 `check-version-of-accessed-instances` Subelements

Element | Required | Description
--- | --- | ---
column-name | only one | Specifies the name of the version column.

- Previous: check-modified-at-commit
- Next: checkpoint-at-end-of-method

- © 2010, Oracle Corporation and/or its affiliates