Hi, there

We can create key if the type is 'Key'.

For instance, Key key =
KeyFactory.createKey(Employee.class.getSimpleName(),
"[email protected]");

How about I want to assign a number(Long) as the key? It doesn't work
though, when I try.

I want to do this because when I run my application locally, the
(Long) id will keep incrementing. However, I want to reset them to
begin with 1 everytime for further stages of my applicaiton.

Thanks,
Lu

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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?hl=en.

Reply via email to