Re: [Neo4j] GraphRepository parameter
Hi, Yes, it has to be a special type. Your class has to extend GraphBacked (as clearly stated by the error you are getting). The AspectJ compiler will make your class extend GraphBacked automatically if you have annotated it with either NodeEntity or RelationshipEntity. The error you are experiencing will usually occur when AspectJ is not present, are you sure you have set up AspectJ properly in your build pipeline. Cheers, Tobias On Tue, May 17, 2011 at 2:48 PM, mujer_esponja dracol...@hotmail.comwrote: Hello!! I have asked another question just a few hours ago, but I am new on neo4j and I need some help. Now the problem is with this class http://static.springsource.org/spring-data/data-graph/docs/current/api/org/springframework/data/graph/neo4j/repository/GraphRepository.html In a declaration I need to do: GraphRepositoryMyClass as I have seen in examples. But I am getting the error: Bound mismatch: The type MyClass is not a valid substitute for the bounded parameter T extends GraphBacked? of the type GraphRepositoryT Must it be a special type? Where is the error?? Thanks in advance -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/GraphRepository-parameter-tp2952354p2952354.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- Tobias Ivarsson tobias.ivars...@neotechnology.com Hacker, Neo Technology www.neotechnology.com Cellphone: +46 706 534857 ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] GraphRepository parameter
Hello, first of all, thanks for answering. If I have understood properly, it should work. Here is MyClass definition: @NodeEntity public class MyClassImpl implements MyClass { ... And my pom.xml, plugins plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdaspectj-maven-plugin/artifactId version1.0/version dependencies dependency groupIdorg.aspectj/groupId artifactIdaspectjrt/artifactId version${aspectj.version}/version /dependency dependency groupIdorg.aspectj/groupId artifactIdaspectjtools/artifactId version${aspectj.version}/version /dependency /dependencies executions execution goals goalcompile/goal goaltest-compile/goal /goals /execution /executions configuration outxmltrue/outxml aspectLibraries aspectLibrary groupIdorg.springframework/groupId artifactIdspring-aspects/artifactId /aspectLibrary aspectLibrary groupIdorg.springframework.data/groupId artifactIdspring-data-neo4j/artifactId /aspectLibrary /aspectLibraries source1.6/source target1.6/target /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.6/source target1.6/target /configuration /plugin /plugins In addition, I have installed on my Eclipse ApectJ plugin, from http://download.eclipse.org/tools/ajdt/36/dev/update Did I miss something else? -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/GraphRepository-parameter-tp2952354p2952486.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] GraphRepository parameter
Thanks again MIchael, I can compile my project, but I have still the error on my IDE, even after installing AspectJ plugin on eclipse, as you suggested me in another forum. Anyway, thank you so much -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/GraphRepository-parameter-tp2952354p2952763.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user