[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-635) Make DetachedCriteria.getExecutableCriteria(session) return a new Criteria each time

Sergey Vidyuk (JIRA) noreply at atlassian.com
Thu Jun 17 13:00:21 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=37488#action_37488 ] 

Sergey Vidyuk commented on HHH-635:
-----------------------------------

It's really useful to have ability to create executable criteria which is deep clone of DetachedCriteria instance. Detached criteria looks like really great solution for lazy loaded paginated lists with complex filtering conditions but in fact it's almost completely unusable for this task. Are there any plans to fix this issue?

It would be great to have something like DetachedCritaria.createExecutableCriteria(Session) which returns new criteria object which you can modify without affecting parent DetachedCriteria.

> Make DetachedCriteria.getExecutableCriteria(session) return a new Criteria each time
> ------------------------------------------------------------------------------------
>
>                 Key: HHH-635
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-635
>             Project: Hibernate Core
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 3.0.5
>         Environment: Appserver: Hibernate 3.0.5/Jboss-4.0.2/Windows XP Professional, DB server: Linux/Oracle 9.2.0.1
>            Reporter: Callum Haig
>            Priority: Minor
>
> It would be useful if a DetachedCriteria could be used to generate independent Criteria instances.  For example, one could be used to get the row count after applying the appropriate projection.  A second could then be used to return the desired result set.
> Many thanks for the hard work of the Hibernate team.

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