spring-data-mongodb
spring-data-mongodb copied to clipboard
BulkOperations inconsistently updates audit fields
When doing a bulk insert (using MongoOperations.bulkOps()), there is an inconsistency with how audit annotations are handled.
Fields annotated with @LastModifiedDate are updated.
Fields annotated with @CreatedDate are not updated.
Thank you @shollander for getting in touch - it would help if you could please take the time to provide a complete minimal sample (something that we can unzip or git clone, build, and deploy) that reproduces the problem.
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.