Transaction Management
Last updated
Was this helpful?
Last updated
Was this helpful?
Transactions help to keep data in a consistent state, by grouping a series of operations that will either succeed or fail together. If successful, the transaction will be committed, if unsuccessful, any change will be rolled back automatically.
There are different ways to manage transactions. Below is an example of how this is performed using the EntityTransaction implementation of EntityManager.