Comments (3)
MongoDB truncates the precision to milliseconds as MongoDB uses millisecond precision in their temporal data types. Newer Java versions have introduced nano-second precision to Instant
and other temporal types so this isn't really something we can fix. We also do not plan to load the object after saving it as it would significantly change application and performance behavior.
If you require the WYSIWYG perspective on your object, we suggest you either load the entity after saving it or provide an EntityCallback
that truncates instants to milliseconds.
from spring-data-mongodb.
Thanks, I will try use workaround instead.
However, shouldn't the document also make it clear since the return is not exactly the saved object
?
from spring-data-mongodb.
There are many ways to affect either the written Document
(converters, entity callbacks, lifecycle events) or the entity without reflecting those changes in the other one.
from spring-data-mongodb.
Related Issues (20)
- Make `MongoHandlerContext` public to leverage contextual information to customize `Observation`s HOT 3
- Reinstate Compatibility Matrix in reference docs HOT 1
- Allow query projection methods `.include()` and `.exclude()` to accept `Collection`
- DTO projections read properties twice
- `GeoJsonPolygon` does not match GeoJSON spec HOT 1
- DocumentReference does not work (after updating to 3.2) when mongodb-driver-reactivestreams is a dependency HOT 1
- Expose server version to build cache.
- Runtime error java.lang.IllegalStateException: state should be: open HOT 6
- Add support for ValueExpression
- Possible change in object mapping behaviour regarding 'null' values HOT 5
- Missing native-image reflection hint for org.springframework.data.mongodb.core.aggregation.AggregationOperation HOT 14
- there is an evident BUG in Query.java line 245 ( getReadPreference method) HOT 1
- @CreatedDate not working HOT 3
- 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
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.