Skip to content

Commit 2c6bd6e

Browse files
DATAMONGO-1576 - Update lifecycle event documentation.
Add note on lifecycle event handling for property types.
1 parent fc5bb3f commit 2c6bd6e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/asciidoc/reference/mongodb.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2347,6 +2347,8 @@ The list of callback methods that are present in AbstractMappingEventListener ar
23472347
* `onAfterLoad` - called in MongoTemplate find, findAndRemove, findOne and getCollection methods after the Document is retrieved from the database.
23482348
* `onAfterConvert` - called in MongoTemplate find, findAndRemove, findOne and getCollection methods after the Document retrieved from the database was converted to a POJO.
23492349

2350+
NOTE: Lifecycle events are only emitted for root level types. Complex types used as properties within a document root are not subject of event publication unless they are document references annotated with `@DBRef`.
2351+
23502352
[[mongo.exception]]
23512353
== Exception Translation
23522354

0 commit comments

Comments
 (0)