问题
We build a Grails Application using the database Neo4j ,And We used Spring Data Neo4j rest , As per the requirement of any Application , it should provide the facility of Transaction . But using Neo4j When we save a Node and Exception occur in executing the code then the node is save but its relationship is not save How to resolve this problem ??? Can we use Spring Transaction Management or any other thing ???
回答1:
In the past it was a shortcoming of the Neo4j-REST APIs to not expose transactions.
In the next milestone build 3.3.0.M01 we'll add support for remote transactions using the Cypher transactional endpoint. Please try with that version then and report back.
来源:https://stackoverflow.com/questions/26381842/how-to-support-transactions-in-neo4j-rest