Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@LastModifiedDate not supported for reactiveBulkOperations replaceOne #4932

Open
tank3a opened this issue Mar 31, 2025 · 0 comments
Open

@LastModifiedDate not supported for reactiveBulkOperations replaceOne #4932

tank3a opened this issue Mar 31, 2025 · 0 comments
Labels
status: waiting-for-triage An issue we've not yet triaged

Comments

@tank3a
Copy link

tank3a commented Mar 31, 2025

I was trying to run this code and found out that @LastModifiedDate annotation in my MyDocumentType entity is not automatically put into my document. The field is disappeared.

var bulkOps = reactiveMongoTemplate.bulkOps(BulkOperations.BulkMode.UNORDERED, MyDocumentType.class);

var query = new Query(Criteria.where("_id").is(doc.getId()));
var option = new FindAndReplaceOptions().upsert();
bulkOps.replaceOne(query, doc, option);
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

No branches or pull requests

2 participants