Perhaps I'm missing something simple, as I believe that this is a common scenario...
When I am working with an object retrieved from the datastore, I want to detect any changes to the object and update the memcache. In a non-JDO scenario this would be easy, as any data logic layer would intercept all updates and thus have a chance to update the memcache.
However, with JDO, updates are achieved by updating attached objects and then letting the persistencemanager do the rest when it closes, and thus my code is never notified of updates. I could put events into all of my getters and setters to be notified of changes to my objects, but I would rather avoid that.
Any clues about how this is normally done would be appreciated.