Cannot resolve reference to bean 'neo4jTemplate'

Asked on December 11, 2014
Cannot resolve reference to bean 'neo4jTemplate' while setting bean property 'neo4jTemplate'; 

I am getting the above error with my Entity class in my spring and neo4j application. My Entity class is 

public class Person {
int id;
public String name;
@RelatedTo(type="TEAMMATE", direction=Direction.BOTH)
public Set<Person> teammates;

Am I missing something?

Replied on December 11, 2014
Use Class for @GraphId
as below

Long id;

And test.

Replied on December 14, 2014
Thanks for the reply.

That was my mistake.

Now working with your changes.

Replied on December 23, 2014

Write Answer

©2024 | Privacy Policy | Contact Us