diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoOperations.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoOperations.java index 0b2dea58e..ac97327b8 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoOperations.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoOperations.java @@ -247,7 +247,7 @@ public interface MongoOperations { * Query for a list of objects of type T from the collection used by the entity class. *

* The object is converted from the MongoDB native representation using an instance of {@see MongoConverter}. Unless - * configured otherwise, an instance of SimpleMongoConverter will be used. + * configured otherwise, an instance of MappingMongoConverter will be used. *

* If your collection does not contain a homogeneous collection of types, this operation will not be an efficient way * to map objects since the test for class type is done in the client and not on the server. @@ -261,7 +261,7 @@ public interface MongoOperations { * Query for a list of objects of type T from the specified collection. *

* The object is converted from the MongoDB native representation using an instance of {@see MongoConverter}. Unless - * configured otherwise, an instance of SimpleMongoConverter will be used. + * configured otherwise, an instance of MappingMongoConverter will be used. *

* If your collection does not contain a homogeneous collection of types, this operation will not be an efficient way * to map objects since the test for class type is done in the client and not on the server. @@ -382,7 +382,7 @@ public interface MongoOperations { * specified type. *

* The object is converted from the MongoDB native representation using an instance of {@see MongoConverter}. Unless - * configured otherwise, an instance of SimpleMongoConverter will be used. + * configured otherwise, an instance of MappingMongoConverter will be used. *

* The query is specified as a {@link Query} which can be created either using the {@link BasicQuery} or the more * feature rich {@link Query}. @@ -399,7 +399,7 @@ public interface MongoOperations { * type. *

* The object is converted from the MongoDB native representation using an instance of {@see MongoConverter}. Unless - * configured otherwise, an instance of SimpleMongoConverter will be used. + * configured otherwise, an instance of MappingMongoConverter will be used. *

* The query is specified as a {@link Query} which can be created either using the {@link BasicQuery} or the more * feature rich {@link Query}. @@ -417,7 +417,7 @@ public interface MongoOperations { * Map the results of an ad-hoc query on the collection for the entity class to a List of the specified type. *

* The object is converted from the MongoDB native representation using an instance of {@see MongoConverter}. Unless - * configured otherwise, an instance of SimpleMongoConverter will be used. + * configured otherwise, an instance of MappingMongoConverter will be used. *

* The query is specified as a {@link Query} which can be created either using the {@link BasicQuery} or the more * feature rich {@link Query}. @@ -433,7 +433,7 @@ public interface MongoOperations { * Map the results of an ad-hoc query on the specified collection to a List of the specified type. *

* The object is converted from the MongoDB native representation using an instance of {@see MongoConverter}. Unless - * configured otherwise, an instance of SimpleMongoConverter will be used. + * configured otherwise, an instance of MappingMongoConverter will be used. *

* The query is specified as a {@link Query} which can be created either using the {@link BasicQuery} or the more * feature rich {@link Query}. @@ -501,7 +501,7 @@ public interface MongoOperations { * type. The first document that matches the query is returned and also removed from the collection in the database. *

* The object is converted from the MongoDB native representation using an instance of {@see MongoConverter}. Unless - * configured otherwise, an instance of SimpleMongoConverter will be used. + * configured otherwise, an instance of MappingMongoConverter will be used. *

* The query is specified as a {@link Query} which can be created either using the {@link BasicQuery} or the more * feature rich {@link Query}. @@ -555,7 +555,7 @@ public interface MongoOperations { * Insert the object into the specified collection. *

* The object is converted to the MongoDB native representation using an instance of {@see MongoConverter}. Unless - * configured otherwise, an instance of SimpleMongoConverter will be used. + * configured otherwise, an instance of MappingMongoConverter will be used. *

* Insert is used to initially store the object into the database. To update an existing object use the save method. * @@ -593,7 +593,7 @@ public interface MongoOperations { * object is not already present, that is an 'upsert'. *

* The object is converted to the MongoDB native representation using an instance of {@see MongoConverter}. Unless - * configured otherwise, an instance of SimpleMongoConverter will be used. + * configured otherwise, an instance of MappingMongoConverter will be used. *

* If you object has an "Id' property, it will be set with the generated Id from MongoDB. If your Id property is a * String then MongoDB ObjectId will be used to populate that string. Otherwise, the conversion from ObjectId to your @@ -610,7 +610,7 @@ public interface MongoOperations { * is an 'upsert'. *

* The object is converted to the MongoDB native representation using an instance of {@see MongoConverter}. Unless - * configured otherwise, an instance of SimpleMongoConverter will be used. + * configured otherwise, an instance of MappingMongoConverter will be used. *

* If you object has an "Id' property, it will be set with the generated Id from MongoDB. If your Id property is a * String then MongoDB ObjectId will be used to populate that string. Otherwise, the conversion from ObjectId to your @@ -734,4 +734,4 @@ public interface MongoOperations { * @return */ MongoConverter getConverter(); -} \ No newline at end of file +} 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 687bb7037..92e295d9b 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 @@ -1306,7 +1306,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware { /** * Map the results of an ad-hoc query on the default MongoDB collection to a List of the specified type. The object is * converted from the MongoDB native representation using an instance of {@see MongoConverter}. Unless configured - * otherwise, an instance of SimpleMongoConverter will be used. The query document is specified as a standard DBObject + * otherwise, an instance of MappingMongoConverter will be used. The query document is specified as a standard DBObject * and so is the fields specification. Can be overridden by subclasses. * * @param collectionName name of the collection to retrieve the objects from