views:

28

answers:

1

I need to get entity by user key that is setted as Id for User entity. Now I want to query all entities that have same key that user has. How can I do that?

A: 

Okey, now I found solution myself:

Query query = pm.newQuery(Entity.class, "user == userParam");
            query.declareParameters("com.google.appengine.api.datastore.Key userParam");            
newbie