From 9a8bf8fc7ad78200a2be78ca96fdecd26d93af4f Mon Sep 17 00:00:00 2001 From: Aleix Morgadas Date: Tue, 12 Sep 2023 09:58:10 +0000 Subject: [PATCH] MongoTemplate doFind for ad-hoc query method visibility as protected. --- .../org/springframework/data/mongodb/core/MongoTemplate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java index ed85da9eb5..ad9565605e 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java @@ -2606,7 +2606,7 @@ protected List doFind(String collectionName, * * @since 2.0 */ - List doFind(CollectionPreparer> collectionPreparer, String collectionName, + protected List doFind(CollectionPreparer> collectionPreparer, String collectionName, Document query, Document fields, Class sourceClass, Class targetClass, CursorPreparer preparer) { MongoPersistentEntity entity = mappingContext.getPersistentEntity(sourceClass);