79172056

Date: 2024-11-09 03:32:42
Score: 2.5
Natty:
Report link

you have placed @trasactional on both handler class,so it will create a seperate transaction for both, so for example if exception occurs in teacherhandler then queries in teacherdao only will roll back and studenthandler trasaction will commmit successfully if it has completed without issue, to solve these(all queries will roll back if exception occur in either one), place @transaction on execute method in processor class and remove @transaction from studenthandler and teacherhandler class.so that both handler will be under single transaction.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @trasactional
  • User mentioned (0): @transaction
  • User mentioned (0): @transaction
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bhavesh mahajan