You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by bu...@apache.org on 2013/03/07 18:07:42 UTC
svn commit: r853501 - in /websites/staging/cayenne/trunk/content: ./
docs/3.1/cayenne-guide/lifecycle-events.html
Author: buildbot
Date: Thu Mar 7 17:07:42 2013
New Revision: 853501
Log:
Staging update by buildbot for cayenne
Modified:
websites/staging/cayenne/trunk/content/ (props changed)
websites/staging/cayenne/trunk/content/docs/3.1/cayenne-guide/lifecycle-events.html
Propchange: websites/staging/cayenne/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Thu Mar 7 17:07:42 2013
@@ -1 +1 @@
-1449174
+1453962
Modified: websites/staging/cayenne/trunk/content/docs/3.1/cayenne-guide/lifecycle-events.html
==============================================================================
--- websites/staging/cayenne/trunk/content/docs/3.1/cayenne-guide/lifecycle-events.html (original)
+++ websites/staging/cayenne/trunk/content/docs/3.1/cayenne-guide/lifecycle-events.html Thu Mar 7 17:07:42 2013
@@ -243,7 +243,7 @@ registry.addListener(<span xmlns="http:/
<span xmlns="http://www.w3.org/1999/xhtml" class="hl-annotation">@PostPersist(entityAnnotations = Tag.class)</span>
<span xmlns="http://www.w3.org/1999/xhtml" class="hl-annotation">@PostUpdate(entityAnnotations = Tag.class)</span>
<span xmlns="http://www.w3.org/1999/xhtml" class="hl-annotation">@PostRemove(entityAnnotations = Tag.class)</span>
- <span xmlns="http://www.w3.org/1999/xhtml" class="hl-keyword">void</span> afterCommit() {
+ <span xmlns="http://www.w3.org/1999/xhtml" class="hl-keyword">void</span> afterCommit(Persistent object) {
counter.get()[<span xmlns="http://www.w3.org/1999/xhtml" class="hl-number">0</span>]++;
}
}</pre><p>Now since this is both a filter and a listener, it needs to be registered as