Chapter 17. Controlling Concurrent Access to Entity Data with Locking
This chapter details how to handle concurrent access to entity data, and the locking strategies available to Java Persistence API application developers.
The following topics are addressed here:
Overview of Entity Locking and Concurrency
Entity data is concurrently accessed if the data in a data source is accessed at the same time by multiple applications. Special care must be taken to ensure that the underlying data’s integrity is preserved when accessed concurrently.
When data is updated in the database tables in a transaction, the persistence provider assumes the database management system ...