79279012

Date: 2024-12-13 16:50:09
Score: 1
Natty:
Report link

Did you try to make your Service methods transactional in order to let the ORM manage the commit ?

@Transactional
public void createWorkflow(String workflowId, String appId) {
    var wf = new RCAWorkflow(
         UUID.randomUUID(), workflowId, "localhost", "1.0", appId, "json!", 
         new Date());
    rcaWorkflowRepository.save(wf);
}
Reasons:
  • Whitelisted phrase (-2): Did you try
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: hafid