From 36d2e0942bdaec0ec6aa8783122acbb4100701c6 Mon Sep 17 00:00:00 2001 From: Christoph Strobl Date: Tue, 10 Jan 2017 11:23:56 +0100 Subject: [PATCH] DATAMONGO-1576 - Update lifecycle event documentation. Add note on lifecycle event handling for property types. --- src/main/asciidoc/reference/mongodb.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/asciidoc/reference/mongodb.adoc b/src/main/asciidoc/reference/mongodb.adoc index 0dc2a3f57..34a378962 100644 --- a/src/main/asciidoc/reference/mongodb.adoc +++ b/src/main/asciidoc/reference/mongodb.adoc @@ -2205,6 +2205,8 @@ The list of callback methods that are present in AbstractMappingEventListener ar * `onAfterLoad` - called in MongoTemplate find, findAndRemove, findOne and getCollection methods after the DBObject is retrieved from the database. * `onAfterConvert` - called in MongoTemplate find, findAndRemove, findOne and getCollection methods after the DBObject retrieved from the database was converted to a POJO. +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`. + [[mongo.exception]] == Exception Translation