SQL queries do not currently support iteration
----------------------------------------------
Key: HHH-3081
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3081
Project: Hibernate3
Issue Type: Bug
Reporter: MG
Query sqlQuery = session.createSQLQuery("select * from
TRADE").addEntity(Trade.class);
sqlQuery.setReadOnly(true);
sqlQuery.setCacheMode(CacheMode.IGNORE);
sqlQuery.setCacheable(false);
sqlQuery.setFetchSize(1000);
Iterator<Trade> trades = sqlQuery.iterate();
Causes
Exception in thread "main" java.lang.UnsupportedOperationException: SQL queries
do not currently support iteration
at org.hibernate.impl.SQLQueryImpl.iterate(SQLQueryImpl.java:190)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira