Comments (3)
Hi Team,
Do you have any solution for this issue?
from spring-data-commons.
This looks like a Spring Data Commons issue as we're creating the entity for DataBase
using a type descriptor of com.example.demo.model.DataBase<java.util.List<java.util.Map<java.lang.String, java.math.BigDecimal>>>
(instead of com.example.demo.model.DataBase<?>
or even com.example.demo.model.DataBase
) so I'm moving the ticket into Commons.
Another aspect is that we work on an Entity level. Component types are only retained for collections and map types, but not for custom types as a type of Foo<T>
or Foo<Foo<T>>
refers to the type Foo
and during creation of the type, we do not have access to the enclosing context anymore.
from spring-data-commons.
The problem comes from TypeDiscoverer
that resolves generics to a Class
and then compares classes for equality. Reducing the type to Class
erases the inner parameters (MyContainer<List<String>>
vs MyContainer<List<Map<…>>
) to List.class
for both cases and therefore, the comparison falsely matches.
from spring-data-commons.
Related Issues (20)
- Missing native-image reflection hint for `org.springframework.data.domain.Unpaged` HOT 7
- IteratorSpliterator returns estimateSize which violates Spliterator's contract breaking parallel stream processing HOT 7
- Document `ExtensionAwareEvaluationContextProvider` mechanism
- Provide out of the box client-side support for Pageable/Page encoding/deserialization HOT 1
- `NoClassDefFoundError` when processing reflection hints for `PageModule`
- ParameterizedTypeReference<CollectionModel<EntityModel<>>> returns empty content from RestTemplate / WebClient HOT 2
- Invalid parent parameter provided to static inner class constructors HOT 6
- Document converter types supported by `CustomConversions`
- Kotlin constructor detection fails during `KType` derivation HOT 1
- ReactiveCrudRepository.save is loosing Tracing context HOT 3
- Release 3.1.10 (2023.0.10)
- Release 3.2.4 (2023.1.4)
- Release 3.3 M2 (2024.0.0)
- Pagination / Sort support in http interface client
- How do I add converter from Instant to org.joda.time.DateTime to spring-data-commons-3.2.1 and spring-data-cassandra-4.2.1 HOT 1
- Add `ValueExpression` infrastructure for query methods
- Spring-Data-Commons Upgrade is causing MongoDB driver to throw CodecConfigurationException HOT 3
- Redunant code in DefaultEntityCallbacks#callback
- Auditing triggers unintended persistent entity creation for collection like types (List, Set,...) HOT 3
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-commons.