I would like to know how can I limit the results number with a javax.jdo.Query
I have tried with setRange
function without success.
This is my current workaround
Object query_result = q.execute(locationId);
if(query_result!=null && ((List<BaseObject>) query_result).size()>0)
return (PokerSession) ((List<BaseObject>) query_result).get(0);
return null;