Results 1 to 2 of 2

Thread: SDN: Properties of related entities are null

  1. #1

    Default 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. #2
    Join Date
    Jan 2011
    Location
    Dresden, Germany
    Posts
    525

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •