Spring data Neo4j: persist () method undefined

Quite new to graphical databases, neo4j and spring. I have a simple POJO annotated with @NodeEntity. But, compared to the wisdom of many online tutorials I've read on the subject, my POJO doesn't have any persist () method to store it in the graph DB.

What black magic do I need to do to make this method available to my POJOs, or are the outdated tutorials out of date and the way I save to DB has changed with the Spring version I am using (2.1.0-RELEASE)?

+3


source to share


1 answer


The black magic you're talking about is AspectJ . Spring Data Neo4j advanced mapping mode uses aspectJ to enhance your pojos. "persist ()" is one of the methods that aspectj adds to your pojos when building a project.



Check out Chapter 21, "Setting Up the Environment" in the Spring Data Neo4j tutorial book, to learn how to set up your project to use advanced mapping mode with aspectj.

+4


source







All Articles