|
188 | 188 | * @author Michael Krog
|
189 | 189 | * @author Jakub Zurawa
|
190 | 190 | * @author Florian Lüdiger
|
| 191 | + * @author Seungho Kang |
191 | 192 | */
|
192 | 193 | public class MongoTemplate implements MongoOperations, ApplicationContextAware, IndexOperationsProvider,
|
193 | 194 | SearchIndexOperationsProvider, ReadPreferenceAware {
|
@@ -1159,7 +1160,7 @@ <T, R> GeoResults<R> doGeoNear(NearQuery near, Class<?> domainType, String colle
|
1159 | 1160 | Assert.notNull(collectionName, "CollectionName must not be null");
|
1160 | 1161 | Assert.notNull(resultType, "ResultType must not be null Use Object.class instead");
|
1161 | 1162 |
|
1162 |
| - Assert.isTrue(query.getLimit() <= 1, "Query must not define a limit other than 1 ore none"); |
| 1163 | + Assert.isTrue(query.getLimit() <= 1, "Query must not define a limit other than 1 or none"); |
1163 | 1164 | Assert.isTrue(query.getSkip() <= 0, "Query must not define skip");
|
1164 | 1165 |
|
1165 | 1166 | MongoPersistentEntity<?> entity = mappingContext.getPersistentEntity(entityType);
|
@@ -2129,7 +2130,7 @@ protected <S, T> UpdateResult replace(Query query, Class<S> entityType, T replac
|
2129 | 2130 | Assert.notNull(entityType, "EntityType must not be null");
|
2130 | 2131 | Assert.notNull(collectionName, "CollectionName must not be null");
|
2131 | 2132 |
|
2132 |
| - Assert.isTrue(query.getLimit() <= 1, "Query must not define a limit other than 1 ore none"); |
| 2133 | + Assert.isTrue(query.getLimit() <= 1, "Query must not define a limit other than 1 or none"); |
2133 | 2134 | Assert.isTrue(query.getSkip() <= 0, "Query must not define skip");
|
2134 | 2135 |
|
2135 | 2136 | UpdateContext updateContext = queryOperations.replaceSingleContext(query,
|
|
0 commit comments