java - DISTINCT query on multiple columns doesn't work - Google App engine Datastore -


I want to get different columns from the Google app engine datastore in the endpoint category I am using code but the problem is that if I try to bring only one column then only it works properly and returns different data. If I try to get multiple columns, then DISTINCT is not working and it returns any effect of a different query without all records. I do not know what is wrong with my code. Please suggest any solution and guide me where I am getting wrong. Thank you

Code: @SuppressWarnings ({"uncheck"}) @api method (name = "joiningflow", httpMethod = HttpMethod.GET, path = "UsendPoint (" Cursor ") string cursor string, @noble @ Nominated (" border ") integer boundary) {EntityManager mgr = null}; Cursor cursor = faucet; List of gt; query.getResultList (); cursor = jpacerhelper.gatecuser (lstnams); if (cursor! = Zero) cursorString = cursor.toWebSafeString (); lstString = New Arreelist & lt; String & gt; (); For (object obj []: lstNames) {lstString.add (obj! = Null? Obj [0] .toString (): faucet); LstString.add (obj! = Null? Obj [1] .toString (): Faucet); Object = New Objective Container (); object.setObjectsList (lstString); } Finally {mgr.close (); } Return item; }

Note that DISTINCT works only with indexed properties Does. None of the uFullName or uName is indexed, then the projection will not work.

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -