Comments (6)
Ok, now I understand and can reproduce the issue, I will fix it
from lc-spring-data-r2dbc.
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.
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.
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.
working now. thank you for the quick fix!
from lc-spring-data-r2dbc.
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)
- Repository.save not fully updating postgres database HOT 6
- Entity Unknown Error HOT 12
- Can't update entity to database by using repository
- Joined property is not populated when using SelectQuery.join
- Generating default UUID on PostgreSQL 13/14
- PreferredConstructor.Parameter is unknown for LcEntityReader HOT 1
- Redundant updates of collection used as an array column
- Incorrect handling of collections in EntityState
- How to convert enums?
- Could not create query for public abstract net.lecousin.reactive.data.relational.LcReactiveDataRelationalClient net.lecousin.reactive.data.relational.repository.LcR2dbcRepository.getLcClient() HOT 1
- Oracle support
- Invocation of init method failed; nested exception is java.lang.StackOverflowError
- SelectExecution#executeWithoutPreSelect does not pass the reactive context to the fromDb variable, which is why transactions do not work. HOT 1
- :-) Will this project continue to be maintained? HOT 1
- If I use LcR2dbcRepository, I get the following error HOT 4
- Circular dependency on latest Spring version (2.6.x) HOT 7
- Failed to Enhance classes HOT 9
- Exception when lazy loading HOT 8
- Required property not found HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lc-spring-data-r2dbc.