Datastore Group: I am spending way too much time trying to figure out how to perform a 'simple' update. I'm following the docs but nothing is working. When I get a "no-record-found" error I have to restart the appserver just to continue viewing the data using '_ah/admin'--which is _very_ disappointing. First of all, why is fist class error thrown when a query doesn't return a record? Second, why does a 'no-record-found- error' hang the entire server forcing a restart. Third, and most importantly, why is it not obvious how to perform a simple update of a single record? I'm using system generated keys, I can see the key value in the '_ah/admin' viewer, but I run into problems when I try to query the object/record using the system generated key value. I'm trying to use "getObjectById(<class-name.class>, <key-value>)"; is this not the sanctioned method? It would be extremely appreciated if the documentation included a simple insert, update, select, delete example that everyone could copy and paste for immediate satisfaction instead of the deeper theoretical (and somewhat roundabout) form taken. I understand the documentation follows Datanucleus OEM product, but seriously, the appEngine docs should speak to this issue with greater brevity. I'm willing to do a write-up and post back to the list if someone can help me get started with basic CRUD.
I feel it is a reasonable expectation that simple CRUD operations should CLEARLY be spelled out in the documentation available for 'quick' copy and paste.....instant satisfaction. Also, a no-record-found error should not be an error, and it surely should not force a restart. I must be doing something wrong, I hope so, because I cannot imagine anyone working this way. Can somebody please steer me in the right direction....any help would be greatly appreciated. - ed -- 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.
