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
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
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
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