3.3.1.37. openjpa.IgnoreChanges

Property name: openjpa.IgnoreChanges

Resource adaptor config-property: IgnoreChanges

Default: false

Description: Whether to consider modifications to persistent objects made in the current transaction when evaluating queries. Setting this to true allows OpenJPA to ignore changes and execute the query directly against the datastore. A value of false forces OpenJPA to consider whether the changes in the current transaction affect the query, and if so to either evaluate the query in-memory or flush before running it against the datastore.

Note that true is an OpenJPA extension that deliberately opts every SELECT out of the guarantee of section 3.10.8 of the specification that pending updates which could affect a query’s result are visible to it. The opt-out applies whatever the flush mode of the query is, including FlushModeType.AUTO set on the Query object itself.