Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
filippor opened this issue Feb 14, 2013 · 2 comments
Closed

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

filippor opened this issue Feb 14, 2013 · 2 comments
Assignees
Milestone

Comments

@filippor
Copy link

@filippor filippor commented Feb 14, 2013

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
Copy link
Member

@timowest timowest commented Feb 27, 2013

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

timowest added a commit that referenced this issue Feb 28, 2013
@timowest
Copy link
Member

@timowest timowest commented Mar 21, 2013

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
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants