Browse Source

DATAMONGO-1718 - Fix MongoTemplate::findAllAndRemove(Query,String) delegating to wrong overload.

Original Pull Request: #469 (by Borislav Rangelov).
pull/482/head
Borislav Rangelov 9 years ago committed by Christoph Strobl
parent
commit
18355aed5e
  1. 5
      spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java

5
spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java

@ -139,6 +139,7 @@ import com.mongodb.util.JSONParseException;
* @author Christoph Strobl * @author Christoph Strobl
* @author Doménique Tilleuil * @author Doménique Tilleuil
* @author Laszlo Csontos * @author Laszlo Csontos
* @author Borislav Rangelov
*/ */
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
public class MongoTemplate implements MongoOperations, ApplicationContextAware { public class MongoTemplate implements MongoOperations, ApplicationContextAware {
@ -1498,7 +1499,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware {
*/ */
@Override @Override
public <T> List<T> findAllAndRemove(Query query, String collectionName) { public <T> List<T> findAllAndRemove(Query query, String collectionName) {
return findAndRemove(query, null, collectionName); return findAllAndRemove(query, null, collectionName);
} }
/* /*
@ -2124,7 +2125,7 @@ public class MongoTemplate implements MongoOperations, ApplicationContextAware {
* Returns all identifiers for the given documents. Will augment the given identifiers and fill in only the ones that * Returns all identifiers for the given documents. Will augment the given identifiers and fill in only the ones that
* are {@literal null} currently. This would've been better solved in {@link #insertDBObjectList(String, List)} * are {@literal null} currently. This would've been better solved in {@link #insertDBObjectList(String, List)}
* directly but would require a signature change of that method. * directly but would require a signature change of that method.
* *
* @param ids * @param ids
* @param documents * @param documents
* @return TODO: Remove for 2.0 and change method signature of {@link #insertDBObjectList(String, List)}. * @return TODO: Remove for 2.0 and change method signature of {@link #insertDBObjectList(String, List)}.

Loading…
Cancel
Save