|
|
|
@ -15,6 +15,13 @@ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
package org.springframework.data.document.mongodb.repository; |
|
|
|
package org.springframework.data.document.mongodb.repository; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import static org.springframework.data.document.mongodb.query.Criteria.*; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.Serializable; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
|
|
|
import java.util.Collections; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
import org.bson.types.ObjectId; |
|
|
|
import org.bson.types.ObjectId; |
|
|
|
import org.springframework.data.document.mongodb.MongoTemplate; |
|
|
|
import org.springframework.data.document.mongodb.MongoTemplate; |
|
|
|
import org.springframework.data.document.mongodb.query.Criteria; |
|
|
|
import org.springframework.data.document.mongodb.query.Criteria; |
|
|
|
@ -26,13 +33,6 @@ import org.springframework.data.domain.Sort; |
|
|
|
import org.springframework.data.repository.PagingAndSortingRepository; |
|
|
|
import org.springframework.data.repository.PagingAndSortingRepository; |
|
|
|
import org.springframework.util.Assert; |
|
|
|
import org.springframework.util.Assert; |
|
|
|
|
|
|
|
|
|
|
|
import java.io.Serializable; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
|
|
|
import java.util.Collections; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import static org.springframework.data.document.mongodb.query.Criteria.where; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Repository base implementation for Mongo. |
|
|
|
* Repository base implementation for Mongo. |
|
|
|
* |
|
|
|
* |
|
|
|
@ -105,9 +105,6 @@ public class SimpleMongoRepository<T, ID extends Serializable> implements Paging |
|
|
|
return where(entityInformation.getIdAttribute()).is(objectId); |
|
|
|
return where(entityInformation.getIdAttribute()).is(objectId); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public T findOne(ID id) { |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
/* |
|
|
|
* (non-Javadoc) |
|
|
|
* (non-Javadoc) |
|
|
|
|