Reputation: 1180
How can I get the transaction object to be able to use it in my service layer when I'm using this configuration?
<neo4j:config storeDirectory="D:/neo4j-2.0.1/data/mydb"/>
<neo4j:repositories base-package="com.myapp.repository" />
<tx:annotation-driven mode="proxy"/>
I'm using Neo4j 2.0.1, Spring data Neo4j 3.0.0 and Spring 3.2.8
Thank you!
Upvotes: 1
Views: 90
Reputation: 206
You can inject NeoTemplate object into your service, if you are not going to use repositories. Transaction can be managed as always with @Transactional annotation!
Cheers, Lorenzo
Upvotes: 2