I have been trying this:
@Transactional(isolation=Isolation.SERIALIZABLE,
rollbackFor={Exception.class},
propagation=Propagation.REQUIRES_NEW)
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?
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