You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Dzmitry Kazimirchyk (JIRA)" <ji...@apache.org> on 2011/08/18 16:04:27 UTC

[jira] [Closed] (CAY-1598) Per DataMap listeners are called for all entities in DataDomain

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

Dzmitry Kazimirchyk closed CAY-1598.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1M3
         Assignee: Dzmitry Kazimirchyk

Removed DataMap listeners from modeler. So there is no more DataMap listeners in Cayenne. Instead of them can be used global listeners registered through annotation API (see CAY-1599). Since DataMap listeners were actually global listeners, I think there must be no difficulties with this.

> Per DataMap listeners are called for all entities in DataDomain
> ---------------------------------------------------------------
>
>                 Key: CAY-1598
>                 URL: https://issues.apache.org/jira/browse/CAY-1598
>             Project: Cayenne
>          Issue Type: Bug
>    Affects Versions: 3.1M2
>            Reporter: Dzmitry Kazimirchyk
>            Assignee: Dzmitry Kazimirchyk
>             Fix For: 3.1M3
>
>
> Listeners assigned to DataMap in *.map.xml are registered as defaultListeners in EntityResolver which means that they are called for each entity in DataDomain regardless of their DataMap.
> Create two data maps in the modeler and add few entities to them. Then add listener to one of the data maps and specify some callback method. You'll see that this callback is invoked not only for entities from this data map but for all entities in data domain.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira