If I understand correctly what you are trying to do, DbEntityListener
doesn't buy you anything. If you need to update Cayenne mapping on
some external event, I guess one way to approach it is to create your
own listener for that event (unrelated to Cayenne). This listener
should manually update appropriate DataMaps at the DataDomain level,
and then force a refresh by calling DataDomain.setEntityResolver(null).
Andrus
On Feb 6, 2006, at 4:27 AM, Emre Yilmaz wrote:
> Hi,
>
> I want to add listeners for db Entities. I decide the use
> org.objectstyle.cayenne.map.event.DbEntityListener but I want to
> know that is this class implements the remote Cayenne dataContext
> inserts, delete and updates. I use a server database and I want to
> change this db Entities with a remote program. When I change the
> server db Entities with remote program, do I listen this changes
> with local Server program? And have cayenne any metod for matching
> the db entities between local and remote databases?
This archive was generated by hypermail 2.0.0 : Mon Feb 06 2006 - 21:50:58 EST