Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Developer's Guide

- Previous: confidentiality
- Next: constraint-field

## consistency

Specifies container behavior in guaranteeing transactional consistency of the data in the bean.

### Superelements

entity-mapping (`sun-cmp-mappings.xml`)

### Subelements

The following table describes subelements for the `consistency` element.

Table A–32 `consistency` Subelements

Element | Required | Description
--- | --- | ---
none | exactly one subelement is required | No consistency checking occurs.
check-modified-at-commit | exactly one subelement is required | Checks concurrent modification of fields in modified beans at commit time.
lock-when-loaded | exactly one subelement is required | Obtains an exclusive lock when the data is loaded.
check-all-at-commit |  | This element is not implemented. Do not use.
lock-when-modified |  | This element is not implemented. Do not use.
check-version-of-accessed-instances | exactly one subelement is required | Checks the version column of the modified beans.

- Previous: confidentiality
- Next: constraint-field

- © 2010, Oracle Corporation and/or its affiliates