标签: java google-app-engine
public static Key createKey(java.lang.String kind, long id)
对于相同的输入值,始终返回相同的键?
答案 0 :(得分:2)
根据Generating Keys中的Entities, Properties and Keys,CreateKey(string,long)应该是确定性的,并且很多软件都依赖于这个事实。如果密钥生成器不稳定,很多事情都会破裂。