cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAY-2087) PostCommitFilter is confused about changes made by Pre* listeners
Date Tue, 24 May 2016 13:40:12 GMT

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

Andrus Adamchik updated CAY-2087:
---------------------------------
    Description: 
Given a Cayenne stack with:

1. Custom Pre[Persist|Update] listeners that create/delete objects related to the target listener
object. 
2. Standard PostCommitFilter (CAY-2030) that captures commit log. "excludeFromTransaction"
is not used (i.e. PostCommitFilter is called inside TransactionFilter).

Desired Behavior:

All objects added, updated, deleted inside the listener should appear in the commit log the
same way any normal objects do.  

Observed Behavior:

Objects deleted and updated by the listeners are excluded from commit log. Objects added by
the listeners are included in commit log, but their properties are not tracked.

 

  was:
Given a Cayenne stack with:

1. Custom Pre[Persist|Update] listeners that create/delete objects related to the target listener
object. 
2. Standard PostCommitFilter (CAY-2030) that captures commit log. "excludeFromTransaction"
is not used (i.e. PostCommitFilter is called inside TransactionFilter).

Desired Behavior:

All objects added or deleted inside the listener should appear in the commit log the same
way any normal objects do.  

Observed Behavior:

Objects deleted by the listeners are excluded from commit log. Objects added by the listeners
are included in commit log, but their properties are not tracked.

 


> PostCommitFilter is confused about changes made by Pre* listeners
> -----------------------------------------------------------------
>
>                 Key: CAY-2087
>                 URL: https://issues.apache.org/jira/browse/CAY-2087
>             Project: Cayenne
>          Issue Type: Bug
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>
> Given a Cayenne stack with:
> 1. Custom Pre[Persist|Update] listeners that create/delete objects related to the target
listener object. 
> 2. Standard PostCommitFilter (CAY-2030) that captures commit log. "excludeFromTransaction"
is not used (i.e. PostCommitFilter is called inside TransactionFilter).
> Desired Behavior:
> All objects added, updated, deleted inside the listener should appear in the commit log
the same way any normal objects do.  
> Observed Behavior:
> Objects deleted and updated by the listeners are excluded from commit log. Objects added
by the listeners are included in commit log, but their properties are not tracked.
>  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message