Hibernate and TransactionRequiredException when propagation set to Propagation.NOT_SUPPORTED
- 阅读更多 关于 Hibernate and TransactionRequiredException when propagation set to Propagation.NOT_SUPPORTED
问题 TL;DR: Service method annotated with @Transactional(propagation = Propagation.NOT_SUPPORTED) Hibernate 5.0.4.Final: everything works as expected (method is executed without transaction) Hibernate 5.2.5.Final: javax.persistence.TransactionRequiredException: no transaction is in progress is thrown as a testcase for this issue I created a simple maven web app and the only change made in code (copy-paste from old working project) was Hibernate version bump in pom.xml Question: What is the proper