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

前端 未结 3 821
余生分开走
余生分开走 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:07

    I like the aspect approach to work around the limitation of the current spring-data way to handle lazy loading.

    @niko - I have put your code sample in a basic maven project and tried to get that solution to work with little success:

    https://github.com/samuel-kerrien/neo4j-aspect-auto-fetching
    

    For some reasons the Aspect is initialising but the advice doesn't seem to get executed. To reproduce the issue, just run the following JUnit test:

    playground.neo4j.domain.UserTest
    

提交回复
热议问题