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 {
@GraphId
int id;
public String name;
@Fetch
@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
@GraphId
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
Find the complete example for spring and neo4j.