Hi,
I'm trying to execute following query, which should return 3 values
but returns 0.
I think it's because pointsEarned is a float, but I don't know how to
solve it.
Query query = pm.newQuery(Answer.class);
query.setFilter("pointsEarned < 0");
List answers = (List) query.execute();
There are 3
Try this:
query.setFilter("pointsEarned < 0f");
This test case below worked for me:
import
com.google.appengine.tools.development.testing.LocalDatastoreServiceTestConfig;
import
com.google.appengine.tools.development.testing.LocalServiceTestHelper;
import junit.framework.Assert;
import org.jun