Giter Site home page Giter Site logo

Comments (6)

lecousin avatar lecousin commented on June 9, 2024 1

Ok, now I understand and can reproduce the issue, I will fix it

from lc-spring-data-r2dbc.

lecousin avatar lecousin commented on June 9, 2024

I don't understand well the question, can you be more precise ?
The lazy feature means that it will fetch linked entites from database lazily, in other words when an entity A has a link to an entity B, and you fetch entity A, the linked entity B is not retrieved from the database directly but only on the first call of lazyGetB.
When a relationship is "many", it means zero to several entities may be linked, that's why it returns a Flux.

from lc-spring-data-r2dbc.

odelyaF avatar odelyaF commented on June 9, 2024

I will try to explain with an example:
I am using code from this repository with "many" relationships. (joinTable)
So I have Entity4: Entity4
and Entity3: Entity3
each one has a Set of the "Linked" entity and a lazyGet function which should return a Flux.
Running Test: AbtractManyToManyTest
With a breakpoint on line 319. I expect the lazyGetLinks to return a flux of "Entity3" but I got a Flux of "Entity4".

hope it was more explanatory.

from lc-spring-data-r2dbc.

lecousin avatar lecousin commented on June 9, 2024

This should be fixed by version 0.10.2, can you try to upgrade and tell if it is ok for you ?

from lc-spring-data-r2dbc.

odelyaF avatar odelyaF commented on June 9, 2024

working now. thank you for the quick fix!

from lc-spring-data-r2dbc.

odelyaF avatar odelyaF commented on June 9, 2024

Hi,
the solution worked nice for the id field but seems that other "lazy" entity fields are null.
For the example above the "Entity3" contains only an id but value field is null.

from lc-spring-data-r2dbc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.