From 888420523421f432fcf80d91f7536e4491c7e38f Mon Sep 17 00:00:00 2001 From: Thomas Risberg Date: Mon, 14 Feb 2011 12:47:35 -0500 Subject: [PATCH] DATADOC-30 updated documenation --- src/docbkx/reference/mongodb.xml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/src/docbkx/reference/mongodb.xml b/src/docbkx/reference/mongodb.xml index b7329de0b..f6c93f287 100644 --- a/src/docbkx/reference/mongodb.xml +++ b/src/docbkx/reference/mongodb.xml @@ -151,9 +151,11 @@ public class AppConfig { } /* - * Use this post processor to translate any MongoExceptions thrown in @Repository annotated classes + * Use this post processor to translate any MongoExceptions thrown in @Repository + * annotated classes */ - public @Bean PersistenceExceptionTranslationPostProcessor persistenceExceptionTranslationPostProcessor() { + public @Bean PersistenceExceptionTranslationPostProcessor + persistenceExceptionTranslationPostProcessor() { return new PersistenceExceptionTranslationPostProcessor(); } @@ -207,9 +209,12 @@ public class AppConfig extends MongoExceptionTranslationConfig { xmlns:context="http://www.springframework.org/schema/context" xmlns:mongo="http://www.springframework.org/schema/data/mongo" xsi:schemaLocation= -"http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd -http://www.springframework.org/schema/data/mongo http://www.springframework.org/schema/data/mongo/spring-mongo-1.0.xsd -http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> + "http://www.springframework.org/schema/context + http://www.springframework.org/schema/context/spring-context-3.0.xsd + http://www.springframework.org/schema/data/mongo + http://www.springframework.org/schema/data/mongo/spring-mongo-1.0.xsd + http://www.springframework.org/schema/beans + http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> <beans> @@ -334,9 +339,11 @@ public class AppConfig { } /* - * Use this post processor to translate any MongoExceptions thrown in @Repository annotated classes + * Use this post processor to translate any MongoExceptions thrown in @Repository + * annotated classes */ - public @Bean PersistenceExceptionTranslationPostProcessor persistenceExceptionTranslationPostProcessor() { + public @Bean PersistenceExceptionTranslationPostProcessor + persistenceExceptionTranslationPostProcessor() { return new PersistenceExceptionTranslationPostProcessor(); } @@ -783,10 +790,10 @@ public class AppConfig {
- Saving and retreiving objects as documents in a + <title>Saving and retrieving objects as documents in a collection - Once we have craeted the collection and maybe an index we can + Once we have created the collection and maybe an index we can start using the collection to store our domain objects as documents. Note that we are using a static import for org.springframework.data.document.mongodb.query.Criteria.where