It may have been uploaded as a string. Does the datastore viewer state that it is a String or Long? Try "1" in your query.
On Wed, Jul 28, 2010 at 2:11 PM, Deepika M <[email protected]> wrote: > Hi, > > I am trying to use the bulk loader to upload information about edges for > Java app engine. > > > I have an Edge entity and it has the source (int), destination (int) and > graph_id (long) as its attributes. > > > And the csv file contains sample data like this > > source,graphId,destination > 1,1,1 > 2,2,2 > 1,2,4 > 7,1,5 > 1,2,1 > > I am able to upload the contents of this csv file to the datastore and even > able to view it in the datastore viewer. > > But when I do a JPQL query on the data like > > Query query = em.createQuery("SELECT x FROM Edges x WHERE x.graphId=1"); > > I get the result size as 0 and I am not able to retrieve the data from the > datastore using JPQL query. > > Any help is appreciated. > > Thanks, > Deepika > > -- > 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]<google-appengine-java%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > -- Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine -- 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.
