[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2201) session.iterate() does not exist

Andres Gonzalez (JIRA) noreply at atlassian.com
Tue Oct 31 11:52:07 EST 2006


session.iterate() does not exist
--------------------------------

         Key: HHH-2201
         URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2201
     Project: Hibernate3
        Type: Bug

  Components: documentation  
    Versions: 3.2.0.ga    
    Reporter: Andres Gonzalez
    Priority: Minor



In Section "14.15. Tips & Tricks":

 You can count the number of query results without actually returning them:
( (Integer) session.iterate("select count(*) from ....").next() ).intValue()


I don't find any session.iterate() method... Maybe it should read:

( (Integer) session.createQuery("select count(*) from
....").iterate().next() ).intValue()

-- 
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