Thanks for your input, what I might do then is create a separate model
with numeric ids and reference properties to entities with key names.

Pseudo code being:

class modelWithKeyNames():
   content = string

class modelWithNumberIDReferences():
   contentReference = reference(modelWithKeyNames)



On Sep 29, 2:44 am, Robin B <[email protected]> wrote:
> Not directly, but you could store the entity with your keyname and an
> integer property containing an id.  The id could be from another
> entity that has an id, or from your own generated sequential ids.
> Another thing to look at, this id preallocation function might be
> useful to you:  
> http://billkatz.com/2009/9/Pre-allocating-IDs-for-App-Engine-datastore
>
> Robin
>
> On Sep 28, 9:27 pm, Larkin2 <[email protected]> wrote:
>
>
>
> > Is there a way to have both the automatically assigned numeric id key
> > and a name key for db entities?
--~--~---------~--~----~------------~-------~--~----~
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