cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r821319 - in /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src: main/java/org/apache/cayenne/reflect/LifecycleCallbackRegistry.java test/java/org/apache/cayenne/CayenneContextWithDataContextTest.java
Date Sat, 03 Oct 2009 13:45:21 GMT
Author: aadamchik
Date: Sat Oct  3 13:45:21 2009
New Revision: 821319

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

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

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/LifecycleCallbackRegistry.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CayenneContextWithDataContextTest.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=821319&r1=821318&r2=821319&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:45:21 2009
@@ -74,7 +74,7 @@
      * methods in this class can be used to register arbitrary listeners.
      */
     public void addDefaultListener(LifecycleListener listener) {
-        addDefaultListener(LifecycleEvent.PRE_ADD, listener, "prePersist");
+        addDefaultListener(LifecycleEvent.PRE_ADD, listener, "preAdd");
         addDefaultListener(LifecycleEvent.POST_PERSIST, listener, "postPersist");
         addDefaultListener(LifecycleEvent.PRE_REMOVE, listener, "preRemove");
         addDefaultListener(LifecycleEvent.POST_REMOVE, listener, "postRemove");

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CayenneContextWithDataContextTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CayenneContextWithDataContextTest.java?rev=821319&r1=821318&r2=821319&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CayenneContextWithDataContextTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/CayenneContextWithDataContextTest.java
Sat Oct  3 13:45:21 2009
@@ -161,7 +161,7 @@
         }
     }
 
-    public void testPrePersistCallback() throws Exception {
+    public void testPreAddCallback() throws Exception {
 
         ClientServerChannel csChannel = new ClientServerChannel(getDomain());
 
@@ -225,7 +225,7 @@
         }
     }
 
-    public void testPrePersistOnObjectCallback() throws Exception {
+    public void testPreAddOnObjectCallback() throws Exception {
 
         TestClientServerChannel csChannel = new TestClientServerChannel(getDomain());
 



Mime
View raw message