@Transactional annotation works with saveAndFlush?
问题 I have the following implementation. @Transactional public void saveAndGenerateResult(Data data) { saveDataInTableA(data.someAmountForA); saveDataInTableB(data.someAmountForB); callAnAggregatedFunction(data); } public void saveDataInTableA(DataA a) { tableARepository.saveAndFlush(a); } public void saveDataInTableA(DataB b) { tableBRepository.saveAndFlush(b); } public void callAnAggregatedFunction() { // Do something based on the data saved from the beginning in Table A and Table B } It is