openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r596338 - /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/event/LifecycleEventManager.java
Date Mon, 19 Nov 2007 15:48:28 GMT
Author: pcl
Date: Mon Nov 19 07:48:28 2007
New Revision: 596338

URL: http://svn.apache.org/viewvc?rev=596338&view=rev
Log:
Make LoadListener.afterRefresh() work.

Modified:
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/event/LifecycleEventManager.java

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/event/LifecycleEventManager.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/event/LifecycleEventManager.java?rev=596338&r1=596337&r2=596338&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/event/LifecycleEventManager.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/event/LifecycleEventManager.java
Mon Nov 19 07:48:28 2007
@@ -568,8 +568,10 @@
                 types |= 2 << LifecycleEvent.BEFORE_DIRTY_FLUSHED;
                 types |= 2 << LifecycleEvent.AFTER_DIRTY_FLUSHED;
             }
-            if (listener instanceof LoadListener)
+            if (listener instanceof LoadListener) {
                 types |= 2 << LifecycleEvent.AFTER_LOAD;
+                types |= 2 << LifecycleEvent.AFTER_REFRESH;
+            }
             if (listener instanceof StoreListener) {
                 types |= 2 << LifecycleEvent.BEFORE_STORE;
                 types |= 2 << LifecycleEvent.AFTER_STORE;



Mime
View raw message