Spring NEO4J data: relationships have null values

I have a spring 3.1 (Milestone) project and spring Data Neo4J 2.1 RC. Everything starts up correctly, and the neo4j database is populated at will, also visible in neoclipse.

Now I get the object (resolves to call Container.java) by id and has the relation “Event”.

A relation in Container.java is modeled as follows:

@RelatedTo(type="HAS_EVENTS", direction = Direction.BOTH)
Set<Event> events = new HashSet<Event>();

When I look at container.getEvents () and iterate over them, I see that one event has an id, but all other properties are null :( When viewed with neoclipse, all properties are saved, as it should be.

Is there any kind of "impatient" or "lazy" download? I do not use @RelationshipType.

+5
source share
2

: @Fetch. , , :)

+6

@Fetch

neo4jTemplate.fetch template.fetch(Event.getEvents())

0

All Articles