mavenneo4j-java-api

neo4j user defined procedure: "cannot find symbol: class Transaction"


I am trying to build a simple user defined procedure using the example user defined procedure supplied by neo4j. However, when I try to get a Transaction instance using "Transaction tx = db.beginTx()", the compiler complains that it cannot resolve the symbol for Transaction.

Any suggestions would be greatly appreciated.


Solution

  • This answer was very simple. Simply import the Transaction package "org.neo4j.graphdb.Transaction"