Implement iterate with org.eclipse.persistence.queries.Cursor #346

filippor opened this Issue Feb 14, 2013 · 2 comments


None yet

2 participants


for EclipseLink implement iterate using org.eclipse.persistence.queries.Cursor

import org.eclipse.persistence.jpa.JpaQuery;
import org.eclipse.persistence.queries.Cursor;

if (query instanceof JpaQuery) {
    JpaQuery<T> jQuery = (JpaQuery<T>) query;
    jQuery.setHint(QueryHints.RESULT_SET_TYPE, ResultSetType.ForwardOnly).setHint(QueryHints.SCROLLABLE_CURSOR, true);
    final Cursor cursor = jQuery.getResultCursor();
@timowest timowest was assigned Feb 25, 2013

Iteration is now optimized for EclipseLink and Hibernate. Optimized versions for OpenJPA and Batoo are still missing.

@timowest timowest added a commit that referenced this issue Feb 28, 2013
@timowest timowest #346 Add EclipseLink dependency 77b2f59

Released in 3.0.0

@timowest timowest closed this Mar 21, 2013
@timowest timowest added this to the 3.0.0 milestone Apr 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment