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)
- Aggregations should be able to handle `Sort.unsorted()` HOT 5
- Behavior of `$project` for nested documents HOT 1
- Use of arrayFilters in @Update in mongo repository HOT 1
- VectorSearch Aggregation Stage HOT 1
- Id conversion handling in `QueryMapper.getMappedValue(…)` doesn't consider nesting HOT 1
- Can't create CRaC checkpoint, fails with the error message "Restarting Spring-managed lifecycle beans after JVM restore" HOT 7
- `SpringDataMongodbQuery` and `SpringDataMongodbSerializer` apply mapping twice HOT 1
- Null-Values from custom converters are stored in document HOT 1
- SpringApplication.exit(...) not closing application due to MongoDB locks for cluster with multiple nodes
- Converter called multiple times evaluating aggregation operation query methods HOT 5
- Creating a Type-Safe Query with Kotlin for Document IDs that have a relationship with DBRef HOT 3
- Aggregation with `$unwind` and `$project` causes `IllegalArgumentException` HOT 1
- Support derived queries using the same field multiple times HOT 1
- querydsl predicate using IN operator returns no results with @DBRef HOT 3
- Aggregation pipeline breaks if $replaceRoot stage is present HOT 3
- Misleading Change Streams documentation HOT 2
- Release 4.2.8 (2023.1.8)
- Release 4.3.2 (2024.0.2)
- MongoTemplate.count Specify strategy HOT 3
- Unable to Determine Generic Converter type 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-mongodb.