cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikita Timofeev (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CAY-2276) PrePersist listener registered as PostPersist in LifecycleCallbackRegistry.addListener(Class<?>, LifecycleListener)
Date Wed, 05 Apr 2017 08:49:41 GMT

     [ https://issues.apache.org/jira/browse/CAY-2276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Nikita Timofeev closed CAY-2276.
--------------------------------
    Resolution: Fixed

https://github.com/apache/cayenne/commit/4ff5e0e71409ef62d48616470a166f736d3bf11e

> PrePersist listener registered as PostPersist in LifecycleCallbackRegistry.addListener(Class<?>,
LifecycleListener)
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAY-2276
>                 URL: https://issues.apache.org/jira/browse/CAY-2276
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>            Reporter: Nikita Timofeev
>            Assignee: Nikita Timofeev
>             Fix For: 4.0.M6
>
>
> Bug has been found in {{addListener(Class<?>, LifecycleListener)}} method, PrePersist
listener registered as PostPersist:
> {code}
> public void addListener(Class<?> entityClass, LifecycleListener listener) {
> // ...
>     addListener(LifecycleEvent.POST_PERSIST, entityClass, listener, "prePersist");
>     addListener(LifecycleEvent.POST_PERSIST, entityClass, listener, "postPersist");
> // ...
> }
> {code} 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message