Skip to content

@LastModifiedDate not supported for reactiveBulkOperations replaceOne #4932

Open
@tank3a

Description

@tank3a

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);

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions