In GAE entities, how can I execute code automatically every time an entity object is created or deleted?

I've written a couple of blog posts on this subject: One on high level pre- and post- put hooks and one on the low level hook support One of these is probably what you're looking for.

I've written a couple of blog posts on this subject: One on high level pre- and post- put hooks, and one on the low level hook support. One of these is probably what you're looking for.

I think that the best way to accomplish what you want to do is to use datastore API hooks. Using that approach will allow you to avoid messing directly with the classes and superclasses. That could get complex and messy and buggy very quickly.

If this is the java implementation, you can implement javax.jdo.listener. StoreCallback on your domain model and then define method jdoPreStore(). This method will automatically be called each time you persist to the datastore.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions