create-two-separate-transactions-in-jpa-within-one-method-call spring boot jpa

231 views Asked by At

Hi I have issues with Transactions..

within single method delete record by Id and then update same record by Id

tried with single transaction and multiple transactions but not working .. please suggests me how to handle within Single Transaction perform Delete and update on same Entity. else within single method request two seperate Transactions.

tried with @Transactional class level , Method level and delete and update level.

but after deleting not able to update Entity.

and showing ERROR HHH000010: On release of batch it still contained JDBC statements

0

There are 0 answers