Announcement Announcement Module
Collapse
No announcement yet.
SDN: Properties of related entities are null Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SDN: Properties of related entities are null

    Hello,


    I extended WorldRepositoryTest in spring-data-neo4j-hello-worlds so that the names of the reachable worlds are tested. They are null when navigating from a retrieved world to a reachable. See:

    https://gist.github.com/5bcbf7693c9465e8771a#L120

    spring-data-neo4j-hello-worlds-aspects returns the correct name. So this seems a problem with the non-aspectj version.

    Regards,
    Stefan

  • #2
    The relationship/reference properties of the node in the simple mapping mode that you want to have loaded transitively have to have a @Fetch annotation.

    Code:
    @Fetch @RelatedTo(type="...") Set<World> reachableByRocket;
    If we would fetch everything eagerly it would easily fetch the whole graph while traversing relationships.

    HTH,

    Michael

    Comment

    Working...
    X