[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2364) DetachedCriteria.getExecutableCriteria(session) does not return a new criteria each time

Amir Pashazadeh (JIRA) noreply at atlassian.com
Fri Feb 2 11:23:41 EST 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2364?page=comments#action_25980 ] 

Amir Pashazadeh commented on HHH-2364:
--------------------------------------

So why just not hold a reference to returned criteria to let a new criteria be created with next call to the method?

There are sometimes that you need some different criteria (for example with different projections) which are almost the same in their conditions.

> DetachedCriteria.getExecutableCriteria(session) does not return a new criteria each time
> ----------------------------------------------------------------------------------------
>
>          Key: HHH-2364
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2364
>      Project: Hibernate3
>         Type: Bug

>   Components: query-criteria
>     Versions: 3.2.1
>     Reporter: Amir Pashazadeh

>
>
> detachedCriteria.getExecutableCriteria(session) does not return a new Criteria each time;
> so if some projection or ... is applied on the result criteria, it will remain on next criterias.

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