Re: [google-appengine] GAE Datastore - Entity in datastore is already updated on @PrePut Datastore Callback

2015-06-02 Thread Jeff Schnitzer
Objectify author here. I would not bother with the @PrePut/@PostPut callbacks; I have yet to find a case where they are actually useful. Instead wrap the low level AsyncDatastoreService and build your code as an interceptor/decorator. That way you have full control. One example is the CachingAsyn

[google-appengine] GAE Datastore - Entity in datastore is already updated on @PrePut Datastore Callback

2015-06-02 Thread Nejc Tomažič
Hi guys, as already described on StackOverflow: I'm working on entity auditing for a set of entities saved in GAE Datastore using @PrePut and @PostPut datastore callbacks. Idea is that old entity is loaded in @PrePut using Objectify and stored to context. Than updated entity is added to cont