A transaction is a sequence of operations that are treated as a single logical unit.
Key properties of transactions (ACID):
- Atomicity: All operations complete successfully, or none do.
- Consistency: Ensures that data integrity rules are adhered to.
- Isolation: Transactions are executed independently.
- Durability: Once completed, changes persist even in case of failures.
Spring provides seamless support for transaction management, simplifying database integration.