[appengine-java] return an empty result from jdo query,any help?

2011-01-19 Thread ice_stream
Hi,all: i write a DAO in application, and i do a local junit test ,it seems ok. public ListDesignElement findByType(String type,PageModel pageModel) { PersistenceManager pm = PMF.get().getPersistenceManager(); Query q=pm.newQuery(DesignElement.class); q.setFilter(type

Re: [appengine-java] return an empty result from jdo query,any help?

2011-01-19 Thread thangavel s
hi, try follows public ListDesignElement getAll() { PersistenceManager pm = PMF.get(). getPersistenceManager(); Query q=pm.newQuery(DesignElement.class); q.setRange(0,20); ListDesignElement) DE=(ListDesignElement)q.execute(); return DE; } On

Re: [appengine-java] return an empty result from jdo query,any help?

2011-01-19 Thread ice_stream
this code is ok,it can return some pojos, -- 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 google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to

Re: [appengine-java] return an empty result from jdo query,any help?

2011-01-19 Thread ice_stream
the getAll() method is ok, but findByType() method will fail. -- 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 google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to