I'm sorry, i don't have the code anymore (nor those problematic objects in the datastore). I used the low level API to do the job and moved on.
But if i run into a similar situation i will definitely let you know :) and will will post everything that is necessary to determine what the problem is. The problem was very strange indeed, because: In data viewer it said: "value: 0.2" and type: String. If i would change to "0.3" using the DataViewer, the JDO query (also modified to query for "0.3' instead of "0.2") would work then for that object! On Tue, Sep 8, 2009 at 9:24 PM, Jason (Google) <[email protected]> wrote: > It's hard to say without seeing your query. I realize you're using a > wrapper, but the JDO query itself should only be a few lines of code -- can > you post it? > > - Jason > > On Fri, Sep 4, 2009 at 4:01 AM, Cornel <[email protected]> wrote: > >> >> Hello! >> >> I have some objects in the database that have a String property called >> version. >> Some of them have version = '0.2', the others have '0.0' >> >> I have an application written in java. >> When i query for an object with version 0.2 with the low level api it >> works (it finds 62 obejcts) >> >> DatastoreService ds = >> DatastoreServiceFactory.getDatastoreService >> (); >> Query q1 = new Query("DbRawContact"); >> q1.addFilter("version", FilterOperator.EQUAL, >> "0.2"); >> PreparedQuery pq = ds.prepare(q1); >> log.info("remainging: " + pq.countEntities()); >> >> When i query with JDO the query doesn't fetch anything! >> >> I won't post the JDO query here, because i actually use a wrapper >> around it (too many lines to post here); but i'm 99.99% sure that code >> is correct because it works for a version = '0.0' query with no >> problems! (and for all other queries that i'm doing with it) >> >> I even tried to fetch one of those "version 0.2" objects using a >> different property; was succesful, so then i tried a consecutive query >> with "version = fetchedObject.getVersion()". No results! What gives? :( >> >> > > > > -- Corneliu Paul Lupulet --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~----------~----~----~----~------~----~------~--~---
