|
|
|
@ -88,6 +88,12 @@ |
|
|
|
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://www.springsource.com/developer/sts">STS</ulink>.</para> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<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 |
|
|
|
|
|
|
|
Start guide</ulink> for an explanation on how to startup a Mongo instance. |
|
|
|
|
|
|
|
Once installed starting Mongo is typically a matter of executing the |
|
|
|
|
|
|
|
following command: <literal>MONGO_HOME/bin/mongod</literal></para> |
|
|
|
|
|
|
|
|
|
|
|
<para>To create a Spring project in STS go to File -> New -> Spring |
|
|
|
<para>To create a Spring project in STS go to File -> New -> Spring |
|
|
|
Template Project -> Simple Spring Utility Project --> press Yes when |
|
|
|
Template Project -> Simple Spring Utility Project --> press Yes when |
|
|
|
prompted. Then enter a project and a package name such as |
|
|
|
prompted. Then enter a project and a package name such as |
|
|
|
@ -1189,10 +1195,8 @@ import static org.springframework.data.document.mongodb.query.Query.query; |
|
|
|
</listitem> |
|
|
|
</listitem> |
|
|
|
</itemizedlist> |
|
|
|
</itemizedlist> |
|
|
|
|
|
|
|
|
|
|
|
<para> The <classname>Query</classname> class has some additional |
|
|
|
<para>The <classname>Query</classname> class has some additional methods |
|
|
|
methods used to provide options for the query.</para> |
|
|
|
used to provide options for the query.</para> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<section> |
|
|
|
<section> |
|
|
|
<title>Methods for the Query class</title> |
|
|
|
<title>Methods for the Query class</title> |
|
|
|
|