使用objectify进行区分

使用objectify进行区分

本文介绍了使用objectify进行区分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用google和engine和objectify,因为在过去的3个小时中,我一直在尝试在objectify中编写一个不同的查询.谁能告诉我如何在特定列的objectify中编写一个不同的查询?

I am working google and engine and objectify, since for the last 3 hours i have been trying to write a distinct query in objectify. Can anyone tell me how to write a distinct query in objectify on a particular column?

关于,Sreekanth

Regards,Sreekanth

推荐答案

Distinct仅适用于投影查询,而Objectify尚不直接支持投影查询.他们在路线图上.请对此问题加注星标: https://code.google.com/p/objectify-appengine/issues/detail?id = 188

Distinct only works with projection queries, which are not directly supported by Objectify yet. They are on the roadmap. Please star this issue: https://code.google.com/p/objectify-appengine/issues/detail?id=188

同时,您可以发出低级API查询,并使用objectify的load().fromEntity()将结果集转换为POJO.

In the mean time, you can issue a low-level API query and use objectify's load().fromEntity() to convert the result set to POJOs.

这篇关于使用objectify进行区分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 12:11