Hi,

I'm using Objectify to store data on Google App Engine.
When creating new entities a entity is put without it's Long id filled. 
This causes App Engine to assign a generated key automatically.

I would like to understand how this key generation works, and more 
specifically in the local test environment with new 
LocalServiceTestHelper(new LocalDatastoreServiceTestConfig()).setUp().

My observation is that when I e.g. do:
- create customer ==> id 1 will be assigned
- create customer ==> id 2 will be assigned
- create product ==> id 3 will be assigned 
- create customer ==> id 4 will be assigned 

So basically a sequential id is used for everything that is created.

I wonder if this can be customized so each datastore kind has it's own 
sequential key.


Cheers,
Marcel

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/IFNQfjR65qMJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to