Answer the question
In order to leave comments, you need to log in
How to correctly make a transaction with JDBC so as not to violate the DAO pattern?
Here is an example.
I have a method that does two things. I want them to be executed in a transaction.
void setStatusDeclinedAndRefund() {
// sets Order status to DECLINED
// refund money to user's balance
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question