Quick revision
The short answer
Propagation decides what a @Transactional method does when it is called while another transaction may already be running. REQUIRED joins the current transaction or starts one; REQUIRES_NEW suspends the current one and starts an independent transaction on a second connection; NESTED runs inside the current transaction using a savepoint, which works with JDBC and DataSourceTransactionManager but not for JPA operations in general. SUPPORTS joins if there is one and otherwise runs without, NOT_SUPPORTED suspends any transaction, MANDATORY requires an existing one, and NEVER fails if one exists.
What to remember
In this answer, we went through all seven propagation values. REQUIRED joins or starts a transaction, REQUIRES_NEW suspends the caller and commits independently on a second connection, and NESTED uses a JDBC savepoint inside the same transaction, which is not supported for JPA operations in general. SUPPORTS and NOT_SUPPORTED adapt to the caller by joining or suspending, while MANDATORY and NEVER check the caller and throw when the expectation is not met.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
Propagation decides what a @Transactional method does when it is called while another transaction may already be running. REQUIRED joins the current transaction or starts one; REQUIRES_NEW suspends the current one and starts an independent transaction on a second connection; NESTED runs inside the current transaction using a savepoint, which works with JDBC and DataSourceTransactionManager but not for JPA operations in general. SUPPORTS joins if there is one and otherwise runs without, NOT_SUPPORTED suspends any transaction, MANDATORY requires an existing one, and NEVER fails if one exists.
Why this question is asked
Propagation is the attribute most people leave at its default and then meet in a bug: an inner failure that rolls back the outer work, an audit row that disappears, or a connection pool that runs dry. Each of the seven values answers the same question in a different way, so the clearest way to learn them is side by side, with the situation each one is for. Interviewers ask about them because choosing the wrong one silently changes what commits. In this answer, we will recap what 'current transaction' means, go through each value with code, see what happens to connections, and summarise them in one table.
1A Quick Recap: Logical and Physical Transactions
A physical transaction is the real one on a database connection, started with autoCommit false and ended with commit or rollback. A logical transaction is the scope of one @Transactional method call. Spring keeps track of the current physical transaction per thread, through TransactionSynchronizationManager.
When a transactional method is called, Spring looks at whether a physical transaction is already active on this thread, and the propagation value says what to do in each case: join it, start a new one, suspend it, refuse, and so on. Suspending means Spring unbinds the current transaction from the thread, keeps it aside untouched, and binds it again when the inner method finishes.
2REQUIRED and REQUIRES_NEW
REQUIRED is the default. If a transaction exists, the method joins it, so both methods share one physical transaction and one commit. If none exists, it starts one. This is what we want for almost every service method.
REQUIRES_NEW suspends the caller's transaction and starts a completely independent one. It commits or rolls back on its own, regardless of what happens to the caller afterwards. Because the outer transaction is only suspended, its connection is still held, so REQUIRES_NEW needs a second connection from the pool while the inner method runs. Notice that record() must be on another bean for the proxy to apply.
3NESTED: A Savepoint Inside the Same Transaction
NESTED stays inside the current physical transaction but sets a savepoint first. A savepoint is a marker inside a transaction that we can roll back to without rolling back the whole transaction. If the nested method fails, Spring rolls back to the savepoint and the outer method can carry on; if the outer transaction later rolls back, the nested work is rolled back with it, because it was never committed separately.
NESTED relies on JDBC savepoints, so it works with DataSourceTransactionManager and JDBC code. With JPA it is a different story: JpaTransactionManager may create a savepoint on the JDBC connection, but Hibernate cannot roll its persistence context back to that savepoint, so NESTED is not supported for JPA operations in general and may throw NestedTransactionNotSupportedException; check your version. Unlike REQUIRES_NEW, it uses only one connection.
4SUPPORTS, NOT_SUPPORTED, MANDATORY and NEVER
The remaining four values do not start new transactions; they adapt to, or check, the caller. SUPPORTS joins the current transaction if there is one and otherwise runs without a transaction. It suits read methods that are happy either way, though the behaviour then depends on the caller, which can be confusing.
NOT_SUPPORTED suspends any current transaction and runs without one. It fits long, non-transactional work called from inside a transaction, such as generating a report file, so the outer transaction's locks are not involved. Like REQUIRES_NEW, the suspended transaction keeps its connection.
MANDATORY requires an existing transaction and throws IllegalTransactionStateException if there is none. It documents and enforces that a method is only meant to be called as part of a larger unit of work, which is a good fit for a repository-like helper. NEVER is the opposite: it throws if a transaction exists, protecting code that must never run inside one, such as a method that calls a slow remote API.
5All Seven Side by Side
The table below is worth remembering as two columns: what the method does when a transaction exists, and what it does when none exists.
| Value | If a transaction exists | If none exists |
|---|---|---|
| REQUIRED (default) | Join it | Start a new one |
REQUIRES_NEW | Suspend it, start an independent one | Start a new one |
| NESTED | Savepoint inside it (JDBC) | Start a new one, like REQUIRED |
| SUPPORTS | Join it | Run without a transaction |
NOT_SUPPORTED | Suspend it, run without | Run without a transaction |
| MANDATORY | Join it | Throw IllegalTransactionStateException |
| NEVER | Throw IllegalTransactionStateException | Run without a transaction |
Notice that only REQUIRES_NEW and NOT_SUPPORTED suspend the caller, and both therefore hold the caller's connection while doing their own work. That is the detail that turns into pool exhaustion when they are used widely.
6Follow-up questions
What is the practical difference between REQUIRES_NEW and NESTED?
REQUIRES_NEW commits independently on a second connection, so its work survives an outer rollback. NESTED uses a savepoint on the same connection, so its failure can be undone alone, but its success is only final when the outer transaction commits.
Does propagation matter for a method called on this?
No, because a self-call skips the proxy and no propagation logic runs at all. The method simply runs inside whatever transaction the caller already has.
Which values would you use day to day?
REQUIRED for almost everything, REQUIRES_NEW for a few documented independent writes such as audit records, and MANDATORY when I want to make sure a helper is only called inside a transaction. The others are rare.
7Conclusion
In this answer, we went through all seven propagation values. REQUIRED joins or starts a transaction, REQUIRES_NEW suspends the caller and commits independently on a second connection, and NESTED uses a JDBC savepoint inside the same transaction, which is not supported for JPA operations in general. SUPPORTS and NOT_SUPPORTED adapt to the caller by joining or suspending, while MANDATORY and NEVER check the caller and throw when the expectation is not met.
Open with
Propagation says what a transactional method does when it's called and a transaction may already be active on the thread. REQUIRED, the default, joins the existing transaction or starts one if there isn't one, so nested service calls usually share one physical transaction and one commit.
Then, if they want more
REQUIRES_NEW suspends the current transaction and starts a fully independent one, which commits or rolls back on its own; the important cost is that the outer transaction keeps its connection while suspended, so it needs a second connection from the pool.
NESTED runs inside the current transaction but sets a savepoint, so the inner work can roll back alone while the outer continues, and it only commits when the outer does. It relies on JDBC savepoints, so it works with DataSourceTransactionManager, but not for JPA operations in general, because Hibernate can't roll back its persistence context to a savepoint.
SUPPORTS joins if there is a transaction and otherwise runs without one. NOT_SUPPORTED suspends any transaction and runs without. MANDATORY requires an existing transaction and throws IllegalTransactionStateException if there's none, and NEVER throws if there is one.
Day to day I use REQUIRED almost everywhere, REQUIRES_NEW for documented cases like audit records, and MANDATORY for helpers that must be part of a bigger unit of work.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Spring Data JPA reference, Hibernate ORM documentation, Spring Framework reference, Transaction management
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Explain REQUIRED, REQUIRES_NEW, NESTED, SUPPORTS, NOT_SUPPORTED, MANDATORY and NEVER...": https://scrivio-interview-library.netlify.app/databases/transactions/656e673be0/