[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3081) SQL queries do not currently support iteration

MG (JIRA) noreply at atlassian.com
Tue Jan 22 14:21:55 EST 2008


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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list