Skip to content

Commit 8340c02

Browse files
DATAMONGO-1576 - Update lifecycle event documentation.
Add note on lifecycle event handling for property types.
1 parent 3c6db34 commit 8340c02

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
@@ -2424,6 +2424,8 @@ The list of callback methods that are present in AbstractMappingEventListener ar
24242424
* `onAfterLoad` - called in MongoTemplate find, findAndRemove, findOne and getCollection methods after the DBObject is retrieved from the database.
24252425
* `onAfterConvert` - called in MongoTemplate find, findAndRemove, findOne and getCollection methods after the DBObject retrieved from the database was converted to a POJO.
24262426

2427+
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`.
2428+
24272429
[[mongo.exception]]
24282430
== Exception Translation
24292431

0 commit comments

Comments
 (0)