You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/antora/modules/ROOT/pages/mongodb.adoc
+12-11
Original file line number
Diff line number
Diff line change
@@ -4,17 +4,18 @@
4
4
5
5
Spring Data support for MongoDB contains a wide range of features:
6
6
7
-
* Spring configuration support with Java-based `@Configuration` classes or an XML namespace for a Mongo driver instance and replica sets.
8
-
* `MongoTemplate` helper class that increases productivity when performing common Mongo operations. Includes integrated object mapping between documents and POJOs.
9
-
* Exception translation into Spring's portable Data Access Exception hierarchy.
10
-
* Feature-rich Object Mapping integrated with Spring's Conversion Service.
11
-
* Annotation-based mapping metadata that is extensible to support other metadata formats.
12
-
* Persistence and mapping lifecycle events.
13
-
* Java-based Query, Criteria, and Update DSLs.
14
-
* Automatic implementation of Repository interfaces, including support for custom finder methods.
15
-
* QueryDSL integration to support type-safe queries.
16
-
* Multi Document Transactions.
17
-
* GeoSpatial integration.
7
+
* xref:mongodb/template-config.adoc[Spring configuration support] with Java-based `@Configuration` classes or an XML namespace for a Mongo driver instance and replica sets.
8
+
* xref:mongodb/template-api.adoc[`MongoTemplate` helper class] that increases productivity when performing common Mongo operations.
9
+
Includes integrated object mapping between documents and POJOs.
10
+
* xref:mongodb/template-api.adoc#mongo-template.exception-translation[Exception translation] into Spring's portable Data Access Exception hierarchy.
11
+
* Feature-rich xref:mongodb/mapping/mapping.adoc[Object Mapping] integrated with Spring's Conversion Service.
12
+
* xref:mongodb/mapping/mapping.adoc#mapping-usage-annotations[Annotation-based mapping metadata] that is extensible to support other metadata formats.
13
+
* xref:mongodb/lifecycle-events.adoc[Persistence and mapping lifecycle events].
14
+
* xref:mongodb/template-query-operations.adoc[Java-based Query, Criteria, and Update DSLs].
15
+
* Automatic implementation of xref:repositories.adoc[Repository interfaces], including support for custom query methods.
16
+
* xref:mongodb/repositories/repositories.adoc#mongodb.repositories.queries.type-safe[QueryDSL integration] to support type-safe queries.
Copy file name to clipboardExpand all lines: src/main/antora/modules/ROOT/pages/mongodb/lifecycle-events.adoc
+51-1
Original file line number
Diff line number
Diff line change
@@ -49,8 +49,58 @@ Declaring these beans in your Spring ApplicationContext causes them to be invoke
49
49
* `onAfterConvert`: Called in `MongoTemplate` `find`, `findAndRemove`, `findOne`, and `getCollection` methods after the `Document` has been retrieved from the database was converted to a POJO.
50
50
====
51
51
52
-
NOTE: Lifecycle events are only emitted for root level types. Complex types used as properties within a document root are not subject to event publication unless they are document references annotated with `@DBRef`.
52
+
NOTE: Lifecycle events are only emitted for root level types.
53
+
Complex types used as properties within a document root are not subject to event publication unless they are document references annotated with `@DBRef`.
53
54
54
55
WARNING: Lifecycle events depend on an `ApplicationEventMulticaster`, which in case of the `SimpleApplicationEventMulticaster` can be configured with a `TaskExecutor`, and therefore gives no guarantees when an Event is processed.
Copy file name to clipboardExpand all lines: src/main/antora/modules/ROOT/pages/mongodb/mapping/custom-conversions.adoc
+1-1
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ public class Payment {
30
30
"date" : ISODate("2019-04-03T12:11:01.870Z") <3>
31
31
}
32
32
----
33
-
<1> String _id_ values that represent a valid `ObjectId` are converted automatically. See xref:mongodb/template-id-handling.adoc#mongo-template.id-handling[How the `_id` Field is Handled in the Mapping Layer]
33
+
<1> String _id_ values that represent a valid `ObjectId` are converted automatically. See xref:mongodb/template-crud-operations.adoc#mongo-template.id-handling[How the `_id` Field is Handled in the Mapping Layer]
34
34
for details.
35
35
<2> The desired target type is explicitly defined as `Decimal128` which translates to `NumberDecimal`. Otherwise the
36
36
`BigDecimal` value would have been truned into a `String`.
0 commit comments