Slide 54 of Under the Covers of the Google App Engine Datastore by
Ryan Barrett states that the "last committed timestamp co-located with
root entity".  Is it possible to access this last committed timestamp
using the low level datastore API?

I'd like to be able to access it to create an enhancement to objectify
that provides optimistic locking.

My idea is:
- On get(), populate a field in the entity just read with the
timestamp.  Probably the field would have an @Lock annotation.
- Send entity to gwt client over rpc.
- Receive entity back from gwt client over rpc.
- On put(), before update check the timestamp and fail if their is a
difference.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to