[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-2773) Incongurency between query count(*) data type and Query.setFirstResult()

Max Rydahl Andersen (JIRA) noreply at atlassian.com
Fri Aug 10 04:42:13 EDT 2007


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2773?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Max Rydahl Andersen updated HHH-2773:
-------------------------------------

      Priority: Minor  (was: Major)
    Issue Type: New Feature  (was: Bug)

can't see this happen though....JDK API change required.

> Incongurency between query count(*) data type and Query.setFirstResult()
> ------------------------------------------------------------------------
>
>                 Key: HHH-2773
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2773
>             Project: Hibernate3
>          Issue Type: New Feature
>    Affects Versions: 3.2.5
>            Reporter: Javier
>            Priority: Minor
>
> When a query thru the Query interface returns tha value of count(*)  it returns a long value but when you need to set the query.setFirstResult() you need to set it thru an integer value which is inconsistent whith the count(*) return type.
> The same happens if you need to use setMaxResults(int maxResults).
> Obviously casting long to int does not solve the problem because if you need to use a long value greater than maxint you can't.

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