Pregunta de entrevista de QIWI

When you can use @Transactional

Respuesta de la entrevista

Anónimo

7 de nov de 2024

The @Transactional annotation in Spring is used to manage transactions in an application, ensuring that a series of operations within a method are treated as a single unit of work. This means that all operations in a transactional context either complete successfully, committing the transaction, or fail, rolling back to maintain data consistency.