Datastore Query returns null

北慕城南 提交于 2019-12-05 19:26:37

One possible reason is that @Index annotation on "score" property was not there from the beginning. Users that were added before update, can't be fetched by .order("-score") command.

Another possible thing is trivial but common! It is your class naming ("User"). Do you have correct import? GAE also has quite common class com.google.appengine.api.users.User that is used for authentication.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!