Transaction Isolation levels spring data neo4j -
when specify isolation level other default in @transactional, error message stating
jtatransactionmanager not back upwards custom isolation levels default - switch 'allowcustomisolationlevels' 'true'
i using spring info neo4j 3.2 running neo4j in embedded mode.
i not able find documentation how accomplish this. trying workaround lost-update , inconsistent analysis problem in project.
the neo4j website suggests utilize locking node pattern (using java api) accomplish this.
i appreciate suggestion on how implement in sdn.
you can enable allowcustomisolationlevels
@configuration ... public class myneo4jconfig extends neo4jconfiguration { ... @override public platformtransactionmanager neo4jtransactionmanager() throws exception { jtatransactionmanager transactionmanager = new jtatransactionmanagerfactorybean(this.getgraphdatabaseservice()).getobject(); transactionmanager.setallowcustomisolationlevels(true); homecoming transactionmanager; }
spring neo4j spring-data-neo4j
No comments:
Post a Comment