cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dzmitry Kazimirchyk (JIRA)" <>
Subject [jira] [Closed] (CAY-1598) Per DataMap listeners are called for all entities in DataDomain
Date Thu, 18 Aug 2011 14:04:27 GMT


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:
>             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:


View raw message