ondro.inginea.eu
Differences in JPA entity locking modes - .Lost in Coding
JPA provides essentially 2 types of locking mechanisms to help synchronize access to entities. Both mechanisms prevent a scenario, where 2 transactions overwrite data of each other without knowing it. By entity locking, we typically want to prevent following scenario with 2 parallel transactions: Adam’s transaction reads data X Barbara’s transaction reads data X Adam’s […]
Ondro Mihályi