spring-data-mongodb icon indicating copy to clipboard operation
spring-data-mongodb copied to clipboard

BulkOperations inconsistently updates audit fields

Open shollander opened this issue 2 weeks ago • 1 comments

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.

shollander avatar Dec 05 '25 18:12 shollander

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.

christophstrobl avatar Dec 11 '25 11:12 christophstrobl

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.

spring-projects-issues avatar Dec 18 '25 11:12 spring-projects-issues