本文介绍了休眠、弹簧、JPS &隔离 - 不支持自定义隔离的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在尝试:
@Transactional(isolation=Isolation.SERIALIZABLE,
rollbackFor={Exception.class},
propagation=Propagation.REQUIRES_NEW)
关于我的服务方法,但 spring 抱怨说:
on my service methods, but spring complains saying:
Standard JPA does not support custom isolation levels - use a special JpaDialect
我该如何解决这个问题?
How can I resolve this?
推荐答案
这个实现不考虑清理的东西,我已经实现了一个类似的解决方案,但它也考虑了清理.该解决方案可以在这里找到:http://shahzad-mughal.blogspot.com/2012/04/spring-jpa-hibernate-support-for-custom.html
This implementation is not account for the clean up stuff, I have implemented a similar solution but that accounts for the clean up as well.That solution can be found here:http://shahzad-mughal.blogspot.com/2012/04/spring-jpa-hibernate-support-for-custom.html
这篇关于休眠、弹簧、JPS &隔离 - 不支持自定义隔离的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!