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

257 Views Asked by At

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.

1

There are 1 best solutions below

0
On BEST ANSWER

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