If you're using JDO, you can do: PersistenceManager pm = PMF.get().getPersistenceManager(); pm.getObjectById(Entity.class, yourIdHere);
Check out the section here about getting an object by key: http://code.google.com/appengine/docs/java/datastore/creatinggettinganddeletingdata.html On Tue, May 18, 2010 at 3:09 PM, Slawek <[email protected]> wrote: > Hello, > I'm new in app engine. I wrote my first simple application > (www.wojciechowscy.waw.pl). It's work, but my the biggest problem is > how to search BigTable using id on this table. I can perform query > like: > String query = "select from " + MyClass.class.getName()+" where > someFiled=='lookingValue'"; > It works and is more natural for me, because generally I'm database > programmer. > > But problem is when i am going to get specify record from BigTable by > his id. Question like: > String query = "select from " + MyClass.class.getName()+" where > id=='+idString+'"; > and other similar construction doesn't work. > I know that i should use parameter queries but in first set i would > like to resolve problem with query with id. > > Regards > sw > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- Ikai Lan Developer Relations, Google App Engine Twitter: http://twitter.com/ikai Delicious: http://delicious.com/ikailan ---------------- Google App Engine links: 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" 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?hl=en.
