I've got a huge problem - multiple entities in my datastore of the same kind have the same id! Their keys are Key
s, but I have been assuming that key.getId() will return a number that is unique among all entities of the same kind.
Not so! Different keys can return the same id! Aurgh! I can confirm this by using the data viewer - multiple entities with the same value in the id/name column. The entities with repeat keys are all in different entity groups - they have different parent keys. I have not seen any repeat ids within the same entity group, but I do not know that that cannot happen.
- Is this normal?
- Is there any way to get a unique numeric identifier automatically generated? I understand that I could supply my own id values, but having to implement my own system for this seems extreme!