Closed
Description
After upgrading to
spring boot 3.0.2
spring-data-mongodb-4.0.1
spring-data-commons-3.0.1
All calls like below are failing with Couldn't find PersistentEntity for type class org.bson.Document:
reactiveMongoTemplate.findAndReplace(
query,
replacement,
options,
Document::class.java,
MasterData.COLLECTION_NAME,
MasterData::class.java
)
replacement has no id field, type is org.bson.Document
PS The same code works without any issues on versions:
spring-data-mongodb-3.2.10
spring-data-commons-2.5.10