Is Spring Data transactional by default?
public void findAndDelete(Long id) { User user = userRepository.findById(id); Long rowsAffected = userRepository.deleteById(id); } I’m using Spring data and not using any explicit @Transactional annotation here. Is Spring Data by any chance, smart enough to make sure that both these are executed in a single transaction, so that I don’t have surprises like the user […]