[appengine-java] Cursor support with JPA

2010-05-05 Thread fvisticot
I do not see any documentation regarding cursor support with JPA. Is the following code the correct way to use cursors ? In this sample code, i will retrieve users from 300 to 320 (query.setMaxResults(20); query.setFirstResult(300);) The test is OK with the Local Eclipse GAE plugin @Test

Re: [appengine-java] Cursor support with JPA

2010-05-05 Thread Chau Huynh
Hi, Cursor provides a point so that query will execute after that. I don't think you can achieve the same thing with query.setFirstResult() Below is code I ran based on consulting JDO example and JPA javadocs. Hope this helps EntityManager em = ... Query query = em.createQuery(queryString);