Announcement Announcement Module
No announcement yet.
Initializing nodes by following relationships in Cineasts example Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Initializing nodes by following relationships in Cineasts example

    Hi everybody.

    I am looking at Spring Data Neo4j; in particular the Cineasts example from the book "Good relationships" found on

    At first I tried to follow the guide and create the project from scratch, but ran into some problems. I then tried to download and deploy the example from GitHub ( and found the same problems.

    The main problem is how to get initialized objects by following relations from field variables. For example, the "cast" section of the movie view never got rendered, because the Set containing the Role relathioships was uninitialized (note that I am refering to the source from GitHub).

    I found that adding @Fetch-annotations on Movie.roles fixed that, but and were still uninitialized. @Fetch'ing them as well solved the problem, but I guess I'm missing something else. After all it seems to be working on

    The configuration is just imported as well as the source code.

    I hope someone can shed some light on this. Thanks in advance.