diff --git a/openjpa-project/src/doc/manual/ref_guide_dbsetup.xml b/openjpa-project/src/doc/manual/ref_guide_dbsetup.xml index e02bb7608..b83dbb4d2 100644 --- a/openjpa-project/src/doc/manual/ref_guide_dbsetup.xml +++ b/openjpa-project/src/doc/manual/ref_guide_dbsetup.xml @@ -3265,7 +3265,7 @@ import org.apache.openjpa.persistence.jdbc.*; Query q = em.createQuery("select m from Magazine m where m.title = 'JDJ'"); OpenJPAQuery kq = OpenJPAPersistence.cast(q); JDBCFetchPlan fetch = (JDBCFetchPlan) kq.getFetchPlan(); -fetch.setFetchSize(20); +fetch.setFetchBatchSize(20); fetch.setResultSetType(ResultSet.TYPE_SCROLL_INSENSITIVE); fetch.setFetchDirection(ResultSet.FETCH_FORWARD); fetch.setLRSSize(JDBCFetchPlan.SIZE_LAST);