小编典典

Hibernate,Spring,JPS和隔离-不支持自定义隔离

hibernate

我一直在尝试:

@Transactional(isolation=Isolation.SERIALIZABLE, 
               rollbackFor={Exception.class}, 
               propagation=Propagation.REQUIRES_NEW)

关于我的服务方式,但spring抱怨说:

Standard JPA does not support custom isolation levels - use a special JpaDialect

我该如何解决?


阅读 371

收藏
2020-06-20

共1个答案

小编典典

此实现不解决清理问题,我已经实现了类似的解决方案,但也解决了清理问题。可以在以下位置找到该解决方案:http :
//shahzad-mughal.blogspot.com/2012/04/spring-jpa-hibernate-support-for-
custom.html

2020-06-20