Lazy/Eager loading/fetching in Neo4j/Spring-Data

前端 未结 3 824
余生分开走
余生分开走 2020-12-09 04:32

I have a simple setup and encountered a puzzling (at least for me) problem:

I have three pojos which are related to each other:

@NodeEntity
public cl         


        
3条回答
  •  南笙
    南笙 (楼主)
    2020-12-09 05:23

    Not transparent, but still lazy fetching.

    template.fetch(person.getDirectReports());
    

    And @Fetch does the eager fetching as was already stated in your answer.

提交回复
热议问题