79791934

Date: 2025-10-16 08:33:29
Score: 2
Natty:
Report link

Try to check below steps to ensure Transaction is initiated properly

1. Make sure proper propagation level is configured for your @Transactional method, which by default is Propogation.REQUIRED

2. If method annotated with @Transactional is called within the same class, there is a chance the transaction doesn't get initiated, so you can move the method to separate Service class and check.

3. If there is any exception thrown in the code flow before to the method execution, then transaction might not be initiated

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @Transactional
  • User mentioned (0): @Transactional
  • Low reputation (1):
Posted by: Sathya Priya