When are declarative and programmatic transaction management used?
Answer / Sumit Kumar Yadav
Declarative Transaction Management (using annotations like @Transactional) is preferred when transactions are simple, consistent with the method-level boundaries, and easily defined using annotations. On the other hand, Programmatic Transaction Management (using APIs like PlatformTransactionManager) is useful for complex scenarios, such as nested transactions or custom transaction control.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is target object?
Are spring beans stateless?
What is spring java based configuration?
How a spring is formed?
Why do we use annotations?
What is drivermanagerdatasource in spring?
What is weaving in spring?
Explain spring beans?
What is object dependency in spring?
What is difference between @resource and @autowired?
Can we learn spring boot without spring? : Spring Boot
What are bean wiring and @autowired annotation?