【发布时间】:2016-03-07 12:50:13
【问题描述】:
向here提问 有什么区别:
Profile profile = ofy().load().type(Profile.class).id(userId).now();
和
Profile profile = ofy().load().key(Key.create(Profile.class, userId)).now();
为什么我们必须使用 Key.create(Profile.class, userId) 为 userId 创建密钥?
谢谢。
【问题讨论】:
标签: java android google-app-engine google-cloud-endpoints objectify