Comments (1)
You're referring to #4571 where we now read all values from a Document
. Previously, our hasValue
check used get(field) != null
as check and that left pre-initialized fields with their values although the MongoDB document indicated a null
value.
The current behavior is by design. If fields in the MongoDB document can be null
, then your model must adopt to that by using wrapper types instead of primitives.
from spring-data-mongodb.
Related Issues (20)
- Release 4.1.10 (2023.0.10)
- Release 4.2.4 (2023.1.4)
- Release 4.3 M2 (2024.0.0)
- `AggregationOptions.maxTime` ignored for `MongoTemplate.aggregateStream()` HOT 2
- Inner _id NULL in projects from @Aggregation HOT 3
- Object Mapping error HOT 2
- Invalid reference when using group on lookup pipeline HOT 2
- `Criteria.regex` converted to `String` for `@Field(targetType = FieldType.STRING)` property HOT 3
- Missing Trace-ID with ReactiveGridFsTemplate in Spring Boot 3.2.3 HOT 4
- Error Query JPA in INNER...INNER Id HOT 1
- Annotation @Version for optimistic locking : lack of standardization HOT 10
- MappingContext should not consider collection like types being an entity. HOT 1
- Cannot extend MongoRepository due to private properties / methods / classes HOT 5
- NPE when use MongoTemplate#updateFirst, MongoTemplate#updateMulti with Query#withHint HOT 2
- auto-index-creation will block app to start when one Mongo cluster node is offline HOT 6
- Centering the documentation HOT 1
- Release 4.1.11 (2023.0.11)
- Release 4.2.5 (2023.1.5)
- Release 4.3 RC1 (2024.0.0)
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-mongodb.