On 08/11/2011 10:35 AM, Dzmitry Kazimirchyk (JIRA) wrote:
Per DataMap listeners are called for all entities in DataDomain
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.
Do we need a DataMap listeners in Cayenne?
What we have now as DataMap listeners are actually global listeners. And
there were no complains about this before. So can we just switch to
global listeners instead of implementing them for DataMap?
I've just committed CAY-1599 and now global listeners can be registered
using annotation api. So about this: should we completely remove DataMap
listener registration from the modeler or maybe move it to DataDomain level?
Any opinions on this?