@Transactional not working when i throw exception on next line
问题 I don't understand the below behavior: I have a method: @Transactional public void processRejection(final Path path) { try { //some code here } catch (final Exception e) { this.handleException(e)); } } which calls the below which does a saves an entity which doesn't yet exists in the database: void handleException(final Throwable e) { this.filesMonitoringJpaManager.save(someEntityHere); throw new Exception(...) } Now the strange is when I comment the throw new Exception(...) the save works,