diff --git a/spring-data-mongodb/src/main/resources/org/springframework/data/document/mongodb/config/spring-mongo-1.0.xsd b/spring-data-mongodb/src/main/resources/org/springframework/data/document/mongodb/config/spring-mongo-1.0.xsd index f2cf68774..9cf466974 100644 --- a/spring-data-mongodb/src/main/resources/org/springframework/data/document/mongodb/config/spring-mongo-1.0.xsd +++ b/spring-data-mongodb/src/main/resources/org/springframework/data/document/mongodb/config/spring-mongo-1.0.xsd @@ -39,7 +39,22 @@ The Mongo driver options - + @@ -192,7 +207,8 @@ The name of the Mongo object that determines what server to monitor. (by default - + + diff --git a/spring-data-mongodb/src/test/java/org/springframework/data/document/mongodb/PersonExample.java b/spring-data-mongodb/src/test/java/org/springframework/data/document/mongodb/PersonExample.java index ddbd2974b..db46a22c4 100644 --- a/spring-data-mongodb/src/test/java/org/springframework/data/document/mongodb/PersonExample.java +++ b/spring-data-mongodb/src/test/java/org/springframework/data/document/mongodb/PersonExample.java @@ -64,7 +64,6 @@ public class PersonExample { log.debug("Updated: " + p); - //mongoOps.remove( query(whereId().is(p.getId())), p.getClass()); mongoOps.remove(p); diff --git a/src/docbkx/reference/mongodb.xml b/src/docbkx/reference/mongodb.xml index 32e9a0fb0..65b860214 100644 --- a/src/docbkx/reference/mongodb.xml +++ b/src/docbkx/reference/mongodb.xml @@ -88,6 +88,12 @@ to create a Spring based project in STS. + First you need to set up a running Mongodb server. Refer to the + Mongodb Quick + Start guide for an explanation on how to startup a Mongo instance. + Once installed starting Mongo is typically a matter of executing the + following command: MONGO_HOME/bin/mongod + To create a Spring project in STS go to File -> New -> Spring Template Project -> Simple Spring Utility Project --> press Yes when prompted. Then enter a project and a package name such as @@ -109,7 +115,7 @@ The cglib dependency is there as we will use Spring's Java configuration style. Also change the version of Spring in the pom.xml to - be + be <spring.framework.version>3.0.5.RELEASE</spring.framework.version> @@ -1165,7 +1171,7 @@ import static org.springframework.data.document.mongodb.query.Query.query; role="bold">withinCenterSphere (Circle circle) Creates a geospatial criterion using $within $center operators. This is only available for Mongo 1.7 - and higher. + and higher. @@ -1185,14 +1191,12 @@ import static org.springframework.data.document.mongodb.query.Query.query; Criteria nearSphere (Point point) Creates a geospatial criterion using $nearSphere$center operations. - This is only available for Mongo 1.7 and higher. + This is only available for Mongo 1.7 and higher. - The Query class has some additional - methods used to provide options for the query. - - + The Query class has some additional methods + used to provide options for the query.
Methods for the Query class