Differences in Using Objectivization

I work with Google and the engine and objectify, since the last 3 hours I tried to write a separate request in objectification. Can someone tell me how to write a separate query in objectivization on a specific column?

Regards, Srikant

+4
source share
3 answers

A distinctive feature only works with projection queries that are not yet supported by Objectify. They are on the road map. Please start this problem: https://code.google.com/p/objectify-appengine/issues/detail?id=188

API objectify load(). fromEntity() POJO.

+4

Objectify (5.0.5+) .

ofy().load().type(Entity.class).project("field1").distinct(true);

+13

It is important that DISTINCT only work with projection queries, and I do not believe that Objectify now supports them (currently it returns only whole entities). You can use the low-level Datastore API to perform a projection request.

+2
source

Source: https://habr.com/ru/post/1537092/


All Articles