Add / Edit objects in Google App Engine java local datastore

The following are the local GAE / J development settings:

  • How to add / edit objects in a local data store (preferably using some interface)? _ah/admin allows you to view only objects.

  • In JUnit local test cases, how do I access the same data store data that my local web application writes? I wrote my test cases according to http://code.google.com/appengine/docs/java/tools/localunittesting.html , but the test cases do not have access to the same data as the web application.

  • How to save local data warehouse data between clean-build (right now local_db.bin is written to the target directory, which is cleaned from time to time)

Stack Used:

  • Google AppEngine for Java - (gae sdk 1.4 / java sdk 6),
  • Netbeans-6.9.1,
  • Maven-2 (maven-gae-plugin 0.7.3)
+7
source share
2 answers
  • You cannot currently edit objects in the local data warehouse of the Java data warehouse. This is on the task list, however.
  • Testing the device should not be based on the contents of the data warehouse: unit tests are designed for offline use.
  • You also cannot do this unless you back up the local_db.bin part of the build process. Again, you should ideally design your application with a simple data reload.
+2
source

Now you can save / load objects using the command line client

+2
source

All Articles