cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r821318 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/LifecycleCallbackRegistry.java
Date Sat, 03 Oct 2009 13:38:40 GMT
Author: aadamchik
Date: Sat Oct  3 13:38:39 2009
New Revision: 821318

URL: http://svn.apache.org/viewvc?rev=821318&view=rev
Log:
CAY-1281 Lifecycle callbacks reorganization

    renaming pre-persist to pre-add, with Modeler upgrade capability
    (now making sure this actually works)

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/LifecycleCallbackRegistry.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/LifecycleCallbackRegistry.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/LifecycleCallbackRegistry.java?rev=821318&r1=821317&r2=821318&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/LifecycleCallbackRegistry.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/LifecycleCallbackRegistry.java
Sat Oct  3 13:38:39 2009
@@ -97,7 +97,7 @@
      * methods in this class can be used to register arbitrary listeners.
      */
     public void addListener(Class<?> entityClass, LifecycleListener listener) {
-        addListener(LifecycleEvent.PRE_ADD, entityClass, listener, "prePersist");
+        addListener(LifecycleEvent.PRE_ADD, entityClass, listener, "preAdd");
         addListener(LifecycleEvent.POST_PERSIST, entityClass, listener, "postPersist");
         addListener(LifecycleEvent.PRE_REMOVE, entityClass, listener, "preRemove");
         addListener(LifecycleEvent.POST_REMOVE, entityClass, listener, "postRemove");



Mime
View raw message