hi all:
follow the well know expense example, i see the following code in 
Report.java:
  @SuppressWarnings("unchecked")
  public static List<Report> findReportEntries(int firstResult,
      int maxResults) {
    EntityManager em = entityManager();
    try {
      List<Report> reportList = em.createQuery(
          "select o from Report 
o").setFirstResult(firstResult).setMaxResults(
          maxResults).getResultList();
      // force it to materialize
      reportList.size();
      return reportList;
    } finally {
      em.close();
    }
  }
i setup my environment exactly the same as expense does, however, everytime 
the query return the first *maxResults *result. and never return the entries 
beyonds the* maxResults.*
*
*
for example, at client side, my cell table using a SimplePager, with the 
range 0-8 each page. say i have 80 entities in table, whatever the 
firstResult and maxResults is, the search result is exactly the *0-8* in the 
table. never show the others beyond *8*.
i debug for days yet still not luck. anyone can give some clues where is 
wrong?
i use datanucleus JPA 2.1.4 and GWT 2.1 with Mysql 5.

thanks very much.



  

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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-web-toolkit?hl=en.

Reply via email to