|
|
|
@ -84,7 +84,7 @@ |
|
|
|
or higher. The latest production release (2.0.x as of this writing) is |
|
|
|
or higher. The latest production release (2.0.x as of this writing) is |
|
|
|
recommended. An easy way to bootstrap setting up a working environment is |
|
|
|
recommended. An easy way to bootstrap setting up a working environment is |
|
|
|
to create a Spring based project in <ulink |
|
|
|
to create a Spring based project in <ulink |
|
|
|
url="http://www.springsource.com/developer/sts">STS</ulink>.</para> |
|
|
|
url="http://spring.io/tools/sts">STS</ulink>.</para> |
|
|
|
|
|
|
|
|
|
|
|
<para>First you need to set up a running Mongodb server. Refer to the |
|
|
|
<para>First you need to set up a running Mongodb server. Refer to the |
|
|
|
<ulink url="http://www.mongodb.org/display/DOCS/Quickstart">Mongodb Quick |
|
|
|
<ulink url="http://www.mongodb.org/display/DOCS/Quickstart">Mongodb Quick |
|
|
|
@ -264,9 +264,9 @@ public class MongoApp { |
|
|
|
<para>For those not familiar with how to configure the Spring |
|
|
|
<para>For those not familiar with how to configure the Spring |
|
|
|
container using Java based bean metadata instead of XML based metadata |
|
|
|
container using Java based bean metadata instead of XML based metadata |
|
|
|
see the high level introduction in the reference docs <ulink |
|
|
|
see the high level introduction in the reference docs <ulink |
|
|
|
url="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/new-in-3.html#new-java-configuration" |
|
|
|
url="http://docs.spring.io/spring/docs/3.0.x/reference/new-in-3.html#new-java-configuration" |
|
|
|
userlevel="">here </ulink> as well as the detailed documentation<ulink |
|
|
|
userlevel="">here </ulink> as well as the detailed documentation<ulink |
|
|
|
url="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/beans.html#beans-java-instantiating-container"> |
|
|
|
url="http://docs.spring.io/spring/docs/3.0.x/reference/beans.html#beans-java-instantiating-container"> |
|
|
|
here</ulink>.</para> |
|
|
|
here</ulink>.</para> |
|
|
|
</note></para> |
|
|
|
</note></para> |
|
|
|
|
|
|
|
|
|
|
|
@ -310,7 +310,7 @@ public class AppConfig { |
|
|
|
classes annoated with the <literal>@Repository</literal> annotation. |
|
|
|
classes annoated with the <literal>@Repository</literal> annotation. |
|
|
|
This hierarchy and use of <literal>@Repository</literal> is described in |
|
|
|
This hierarchy and use of <literal>@Repository</literal> is described in |
|
|
|
<ulink |
|
|
|
<ulink |
|
|
|
url="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/dao.html">Spring's |
|
|
|
url="http://docs.spring.io/spring/docs/3.0.x/reference/dao.html">Spring's |
|
|
|
DAO support features</ulink>.</para> |
|
|
|
DAO support features</ulink>.</para> |
|
|
|
|
|
|
|
|
|
|
|
<para>An example of a Java based bean metadata that supports exception |
|
|
|
<para>An example of a Java based bean metadata that supports exception |
|
|
|
@ -1986,7 +1986,7 @@ GeoResults<Restaurant> = operations.geoNear(query, Restaurant.class);</pro |
|
|
|
methods on MongoOperations to simplify the creation and execution of |
|
|
|
methods on MongoOperations to simplify the creation and execution of |
|
|
|
Map-Reduce operations. It can convert the results of a Map-Reduce |
|
|
|
Map-Reduce operations. It can convert the results of a Map-Reduce |
|
|
|
operation to a POJO also integrates with Spring's <ulink |
|
|
|
operation to a POJO also integrates with Spring's <ulink |
|
|
|
url="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/resources.html">Resource |
|
|
|
url="http://docs.spring.io/spring/docs/3.0.x/reference/resources.html">Resource |
|
|
|
abstraction</ulink> abstraction. This will let you place your JavaScript |
|
|
|
abstraction</ulink> abstraction. This will let you place your JavaScript |
|
|
|
files on the file system, classpath, http server or any other Spring |
|
|
|
files on the file system, classpath, http server or any other Spring |
|
|
|
Resource implementation and then reference the JavaScript resources via an |
|
|
|
Resource implementation and then reference the JavaScript resources via an |
|
|
|
@ -2100,7 +2100,7 @@ MapReduceResults<ValueObject> results = mongoOperations.mapReduce(query, " |
|
|
|
providing methods on MongoOperations to simplify the creation and |
|
|
|
providing methods on MongoOperations to simplify the creation and |
|
|
|
execution of group operations. It can convert the results of the group |
|
|
|
execution of group operations. It can convert the results of the group |
|
|
|
operation to a POJO and also integrates with Spring's <ulink |
|
|
|
operation to a POJO and also integrates with Spring's <ulink |
|
|
|
url="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/resources.html">Resource |
|
|
|
url="http://docs.spring.io/spring/docs/3.0.x/reference/resources.html">Resource |
|
|
|
abstraction</ulink> abstraction. This will let you place your JavaScript |
|
|
|
abstraction</ulink> abstraction. This will let you place your JavaScript |
|
|
|
files on the file system, classpath, http server or any other Spring |
|
|
|
files on the file system, classpath, http server or any other Spring |
|
|
|
Resource implementation and then reference the JavaScript resources via an |
|
|
|
Resource implementation and then reference the JavaScript resources via an |
|
|
|
@ -2710,7 +2710,7 @@ List<DBObject> resultList = result.getMappedResults();</programlisting> |
|
|
|
<note> |
|
|
|
<note> |
|
|
|
<para>For more information on the Spring type conversion service see the |
|
|
|
<para>For more information on the Spring type conversion service see the |
|
|
|
reference docs <ulink |
|
|
|
reference docs <ulink |
|
|
|
url="http://static.springsource.org/spring/docs/3.0.x/reference/validation.html#core-convert">here</ulink>.</para> |
|
|
|
url="http://docs.spring.io/spring/docs/3.0.x/reference/validation.html#core-convert">here</ulink>.</para> |
|
|
|
</note> |
|
|
|
</note> |
|
|
|
|
|
|
|
|
|
|
|
<section id="mongo.custom-converters.writer"> |
|
|
|
<section id="mongo.custom-converters.writer"> |
|
|
|
@ -3069,7 +3069,7 @@ mongoTemplate.dropCollection("MyNewCollection"); </programlisting> |
|
|
|
interface.</para> |
|
|
|
interface.</para> |
|
|
|
|
|
|
|
|
|
|
|
<para>The motivation behind mapping to Spring's <ulink |
|
|
|
<para>The motivation behind mapping to Spring's <ulink |
|
|
|
url="http://static.springsource.org/spring/docs/3.0.x/reference/dao.html#dao-exceptions">consistent |
|
|
|
url="http://docs.spring.io/spring/docs/3.0.x/reference/dao.html#dao-exceptions">consistent |
|
|
|
data access exception hierarchy</ulink> is that you are then able to write |
|
|
|
data access exception hierarchy</ulink> is that you are then able to write |
|
|
|
portable and descriptive exception handling code without resorting to |
|
|
|
portable and descriptive exception handling code without resorting to |
|
|
|
coding against <ulink |
|
|
|
coding against <ulink |
|
|
|
|