[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-912) Use of DetachedCriteria

Luca Domenichini (JIRA) noreply at atlassian.com
Fri Mar 2 09:19:51 EST 2012


    [ https://hibernate.onjira.com/browse/HHH-912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45793#comment-45793 ] 

Luca Domenichini commented on HHH-912:
--------------------------------------

I'm having the problem of setting the maxResults on a Subqueries.propertyIn(String, DetachedCriteria).

Completely agree with John saying about a common interface between Criteria and DetachedCriteria.

Someone of you did find a way to solve this problem?

> Use of DetachedCriteria
> -----------------------
>
>                 Key: HHH-912
>                 URL: https://hibernate.onjira.com/browse/HHH-912
>             Project: Hibernate ORM
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 3.0.5
>         Environment: All
>            Reporter: Frank Verbruggen
>            Priority: Minor
>
> The class org.hibernate.criterion.DetachedCriteria should represent a criteria object on which all the operations available to a Criteria object that do NOT require a Session object are available.
> Two such operations are setFirstResult() and setMaxResults().
> These are unfortunately enough not available.
> There probably are more methods missing that need to be added but these two in particular are important to me.
> See http://opensource2.atlassian.com/projects/spring/browse/SPR-1254.
> Can they be added in the next release ?
> Kind regards
> Frank Verbruggen

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list