cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrey Razumovsky <razumovsky.and...@gmail.com>
Subject Re: svn commit: r822698 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/reflect/LifecycleCallbackRegistry.java
Date Thu, 08 Oct 2009 13:45:24 GMT
Hi Andrus,

Was removing prePersist from Lifecycle listener done intentionally?

2009/10/7 <andrey@apache.org>

> Author: andrey
> Date: Wed Oct  7 12:42:39 2009
> New Revision: 822698
>
> URL: http://svn.apache.org/viewvc?rev=822698&view=rev
> Log:
> fixing problem with default listeners in new callback model
>
> 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=822698&r1=822697&r2=822698&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
> Wed Oct  7 12:42:39 2009
> @@ -75,6 +75,7 @@
>      */
>     public void addDefaultListener(LifecycleListener listener) {
>         addDefaultListener(LifecycleEvent.POST_ADD, listener, "postAdd");
> +        addDefaultListener(LifecycleEvent.PRE_PERSIST, listener,
> "prePersist");
>         addDefaultListener(LifecycleEvent.POST_PERSIST, listener,
> "postPersist");
>         addDefaultListener(LifecycleEvent.PRE_REMOVE, listener,
> "preRemove");
>         addDefaultListener(LifecycleEvent.POST_REMOVE, listener,
> "postRemove");
>
>
>


-- 
Andrey

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message