Still not working even with the AspectJ plugin, here is what I did on Eclipse STS 2.7.1...
I created an empty Dynamic Web Project, added the libraries for neo4j community and spring data graph, then added a simple entity class that uses spring data graph annotations and the persis() method. I could not download the AspectJ plugin from the documentation because the version I already have is from ajdt/37/dev/update...I'm assuming the later version should be ok? I converted the project to an AspectJ project from Eclipse, this added the AspectJ runtime libraries to the project, specifically.. org.aspectj.runtime_1.6.12.20110812122400; is that correct? Regarding the build path updates as per the documentation, I'm not using maven at the moment, but I did include "**/*.aj" on the src/java folder settings. Still getting the compile error on the persist() method. This is one nasty problem! Raffi -----Original Message----- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Michael Hunger Sent: Sunday, August 14, 2011 4:59 AM To: Neo4j user discussions Subject: Re: [Neo4j] Defining relationships declaritavely or with annotations Have you enabled AspectJ support for your project? You should have the aspectj plugin installed and your project should show an "AJ" symbol on its icon. AspectJ will introduce this and other methods and functionality on classes annotated with @NodeEntity. Please look here for details: http://static.springsource.org/spring-data/data-graph/snapshot-site/referenc e/html/#reference:aspectj Please report back if it doesn't solve your problems. Thanks Michael Am 14.08.2011 um 00:55 schrieb etc1: > Mike, > > Using Spring Data Graph, when defining a node entity using annotations... > > @NodeEntity > public class User... > > ... the following code not work compile....Eclipse complains that the > persist() method is not defined for class User, which is true, but in > the imdb sample project it's coded the same way for Actor, Movie, etc. > What am I missing? > > ..new User(...).persist(); > > > > > -----Original Message----- > From: user-boun...@lists.neo4j.org > [mailto:user-boun...@lists.neo4j.org] On Behalf Of Michael Hunger > Sent: Monday, August 08, 2011 8:59 PM > To: Neo4j user discussions > Subject: Re: [Neo4j] Defining relationships declaritavely or with > annotations > > What does make you think it not being very mature? As one of the > project leads I'm very interested in your thorough evaluation. > > There are other libraries that follow a similar approach (annotation > based mapping), like jo4neo. > > Neo4j itself is about the core-database, higher level bindings or > drivers are provided mostly by the community. > > Michael > > Am 09.08.2011 um 02:44 schrieb etc1: > >> Hi Michael, >> >> I saw that, but it does not look very mature. Does neo4j offer any >> other options aside from doing it in the code? XML config, etc, >> anything but hardcoding programmatically. >> >> -----Original Message----- >> From: user-boun...@lists.neo4j.org >> [mailto:user-boun...@lists.neo4j.org] On Behalf Of Michael Hunger >> Sent: Monday, August 08, 2011 8:41 PM >> To: Neo4j user discussions >> Subject: Re: [Neo4j] Defining relationships declaritavely or with >> annotations >> >> You might look into Spring Data Graph for a declarative object graph >> mapping. >> >> See: >> >> http://springsource.org/spring-data/neo4j >> http://bit.ly/sdg-html >> >> Cheers >> >> Michael >> >> Am 09.08.2011 um 02:34 schrieb etc1: >> >>> Hi, >>> >>> Is it possible to define relationships using declarative >>> configuration or annotations? The Getting Started guide illustrates >>> how to do it programmatically, but I prefer to keep relationship >>> mappings outside of the code, it will be easier to maintain. >>> >>> Thanks >>> >>> _______________________________________________ >>> Neo4j mailing list >>> User@lists.neo4j.org >>> https://lists.neo4j.org/mailman/listinfo/user >> >> _______________________________________________ >> Neo4j mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user >> >> _______________________________________________ >> Neo4j mailing list >> User@lists.neo4j.org >> https://lists.neo4j.org/mailman/listinfo/user > > _______________________________________________ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user > > _______________________________________________ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user