Announcement Announcement Module
Collapse
No announcement yet.
Initializing nodes by following relationships in Cineasts example Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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 http://www.springsource.org/spring-data/neo4j.

    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 (https://github.com/SpringSource/spri...mples/cineasts) 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 Role.movie and Role.actor 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 cineasts.net...

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

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