Comments (3)
Placing collections in an embeddable is somewhat problematic as the current code only checks values from the current row in ResultSet
. To determine whether there are values, we would have to run a query to check whether there are values. Then run another query to fetch the actual rows. With a single property, all this can be done, but running multiple queries for multiple relationship properties is where it becomes problematic.
I agree this is a bug and we need to take care of it.
from spring-data-relational.
Maybe I am lost in the context, but the collection is part of the current row when it is an array column. So, no additional query should be needed.
The code imho already has all the information needed to return the correct null result for the embedded object, as it needed to fill all the null fields in it already.
from spring-data-relational.
You're right; I missed that the component type is String
and, therefore, a simple type. In any case, we nee to fix the issue on our side.
from spring-data-relational.
Related Issues (20)
- Logical deletion is supported HOT 1
- Invalid SQL generated when non-root entity in aggregate has a collection HOT 3
- Incorrect mapping for @Embedded entities with @Id queried via NamedParameterJdbcTemplate HOT 3
- Add support for ValueExpression
- possibility of data loss using CrudRepository in case of nested entities as java Record HOT 6
- Release 3.1.10 (2023.0.10)
- Release 3.2.4 (2023.1.4)
- Release 3.3 M2 (2024.0.0)
- Feature request: Add support for multiple and polyglot data sources by extending @EnableJdbcRepositories annotation with all refs HOT 1
- Should NOT_IN judgment be added to QueryMapper's convertValue function implementation? HOT 2
- Add Entity Inheritance Support HOT 1
- MappedCollection select 2 level entity aggregate link by 1 level enity id value HOT 5
- Upgrade to Netty 4.1.107.Final
- AggregateReference conversion does not honor custom converters HOT 2
- how to do database sharding HOT 1
- Release 3.1.11 (2023.0.11)
- Release 3.2.5 (2023.1.5)
- Release 3.3 RC1 (2024.0.0)
- support query with `ExampleMatcher` on `AggregateReference` properties HOT 1
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 spring-data-relational.